Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ class UIDesignAgent:
|
|
| 32 |
}
|
| 33 |
|
| 34 |
data = {
|
| 35 |
-
"model": "openai/gpt-3.5-turbo",
|
| 36 |
"messages": [
|
| 37 |
{"role": "system", "content": system_prompt},
|
| 38 |
{"role": "user", "content": f"Create a design system for: {prompt}"}
|
|
@@ -450,8 +450,21 @@ def create_interface():
|
|
| 450 |
outputs=[prompt_input, page1_output, page2_output, page3_output, design_system_output]
|
| 451 |
)
|
| 452 |
|
| 453 |
-
# Add examples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
gr.Examples(
|
| 455 |
-
examples=
|
| 456 |
-
|
| 457 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
|
| 34 |
data = {
|
| 35 |
+
"model": "openai/gpt-3.5-turbo",
|
| 36 |
"messages": [
|
| 37 |
{"role": "system", "content": system_prompt},
|
| 38 |
{"role": "user", "content": f"Create a design system for: {prompt}"}
|
|
|
|
| 450 |
outputs=[prompt_input, page1_output, page2_output, page3_output, design_system_output]
|
| 451 |
)
|
| 452 |
|
| 453 |
+
# Add examples - FIXED STRING LITERALS
|
| 454 |
+
example_prompts = [
|
| 455 |
+
"Create a SaaS website: 1) Landing page with hero and pricing cards, 2) Features page with grid layout, 3) Contact page with form",
|
| 456 |
+
"Design a portfolio: 1) Homepage with projects showcase, 2) About page with skills, 3) Contact page",
|
| 457 |
+
"Build an e-commerce site: 1) Homepage with products, 2) Product detail page, 3) Cart page"
|
| 458 |
+
]
|
| 459 |
+
|
| 460 |
gr.Examples(
|
| 461 |
+
examples=example_prompts,
|
| 462 |
+
inputs=prompt_input
|
| 463 |
+
)
|
| 464 |
+
|
| 465 |
+
return demo
|
| 466 |
+
|
| 467 |
+
# Launch the app
|
| 468 |
+
if __name__ == "__main__":
|
| 469 |
+
demo = create_interface()
|
| 470 |
+
demo.launch()
|