saicharantej commited on
Commit
438c997
1 Parent(s): bf90c39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -29,9 +29,9 @@ def generate_mockup(problem):
29
  return response
30
 
31
  # Define a function to handle form submissions (this is just a placeholder)
32
- def handle_form(inputs):
33
- print(inputs)
34
- emp_content = generate_mockup(inputs)
35
  #final_html_content = extract_html(emp_content)
36
  return emp_content, emp_content
37
 
@@ -42,5 +42,5 @@ gr.Interface(
42
  outputs=[gr.HTML(),gr.Textbox()],
43
  title="Mockup Generator",
44
  description="Generate a mockup for a given requirement",
45
- examples=["Design an interface for a food delivery app with a map showing nearby restaurants, a menu with categories like 'Asian Cuisine' and 'Italian Pasta', and a user profile section.","Generate a newsletter template for a tech company with sections for latest news, featured products, and upcoming events."],
46
  ).launch()
 
29
  return response
30
 
31
  # Define a function to handle form submissions (this is just a placeholder)
32
+ def handle_form(requirements):
33
+ print(requirements)
34
+ emp_content = generate_mockup(requirements)
35
  #final_html_content = extract_html(emp_content)
36
  return emp_content, emp_content
37
 
 
42
  outputs=[gr.HTML(),gr.Textbox()],
43
  title="Mockup Generator",
44
  description="Generate a mockup for a given requirement",
45
+ examples=["Design an interface for a food delivery app payment checkout screen, a menu with categories like 'Asian Cuisine' and 'Italian Pasta', and a user profile section.","Generate a newsletter template for a tech company with sections for latest news, featured products, and upcoming events."],
46
  ).launch()