Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def cohere_response(msg):
|
|
| 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}. You need to carefully understand the requirement
|
| 26 |
and generate the html code for the mockup. You can use bootstrap and popularly available visual libraries to generate the code. Do not generate placeholders and always make assumptions that makes the generated mockup useful to solve real-world problems. It should be visually appealing and should
|
| 27 |
-
satisfy the requirement as a mockup. You are supposed to just generate the html code and nothing else as output
|
| 28 |
response = cohere_response(prompt_sum)
|
| 29 |
return response
|
| 30 |
|
|
|
|
| 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}. You need to carefully understand the requirement
|
| 26 |
and generate the html code for the mockup. You can use bootstrap and popularly available visual libraries to generate the code. Do not generate placeholders and always make assumptions that makes the generated mockup useful to solve real-world problems. It should be visually appealing and should
|
| 27 |
+
satisfy the requirement as a mockup. You are supposed to just generate the html code and nothing else as output'''
|
| 28 |
response = cohere_response(prompt_sum)
|
| 29 |
return response
|
| 30 |
|