Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,9 +22,11 @@ def cohere_response(msg):
|
|
| 22 |
return output
|
| 23 |
|
| 24 |
def generate_mockup(problem):
|
| 25 |
-
prompt_sum = f'''You are a UX designer who is an expert in generating front-end code for a given requirement from a product manager: {problem}.
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
response = cohere_response(prompt_sum)
|
| 29 |
return response
|
| 30 |
|
|
|
|
| 22 |
return output
|
| 23 |
|
| 24 |
def generate_mockup(problem):
|
| 25 |
+
prompt_sum = f'''You are a UX designer who is an expert in generating front-end code for a given requirement from a product manager: {problem}.
|
| 26 |
+
You need to carefully understand the requirement and generate the HTML code for a series of mockups that together form a clickable prototype.
|
| 27 |
+
You can use Bootstrap and popularly available visual libraries to generate the code. Do not generate placeholders and always make assumptions that make the generated
|
| 28 |
+
mockups useful to solve real-world problems. Each mockup should link to the next, creating a seamless user experience. The prototype should be visually appealing and
|
| 29 |
+
satisfy the requirement as a mockup. You are supposed to just generate the HTML code and nothing else as output.'''
|
| 30 |
response = cohere_response(prompt_sum)
|
| 31 |
return response
|
| 32 |
|