saicharantej commited on
Commit
fa3de18
·
verified ·
1 Parent(s): 4a6edaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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}. 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
 
 
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