Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,12 +37,12 @@ def process(user_input):
|
|
| 37 |
return preview, html, log, html_file, log_file, zip_file
|
| 38 |
|
| 39 |
with gr.Blocks() as demo:
|
| 40 |
-
gr.Markdown("# 🤖 Multi-Agent UI Generator
|
| 41 |
user_prompt = gr.Textbox(label="Describe your UI", lines=4, value="A yoga retreat homepage with schedule and testimonials.")
|
| 42 |
run_btn = gr.Button("Run Agents")
|
| 43 |
|
| 44 |
gr.Markdown("### 🔍 Website Preview")
|
| 45 |
-
preview_html = gr.HTML()
|
| 46 |
|
| 47 |
gr.Markdown("### 🖥️ Generated HTML Code")
|
| 48 |
html_output = gr.Textbox(lines=15, label="Final HTML")
|
|
|
|
| 37 |
return preview, html, log, html_file, log_file, zip_file
|
| 38 |
|
| 39 |
with gr.Blocks() as demo:
|
| 40 |
+
gr.Markdown("# 🤖 Multi-Agent UI Generator")
|
| 41 |
user_prompt = gr.Textbox(label="Describe your UI", lines=4, value="A yoga retreat homepage with schedule and testimonials.")
|
| 42 |
run_btn = gr.Button("Run Agents")
|
| 43 |
|
| 44 |
gr.Markdown("### 🔍 Website Preview")
|
| 45 |
+
preview_html = gr.HTML(value=f"<iframe srcdoc=\"{html.replace('\"', '"')}\" width='100%' height='600px'></iframe>")
|
| 46 |
|
| 47 |
gr.Markdown("### 🖥️ Generated HTML Code")
|
| 48 |
html_output = gr.Textbox(lines=15, label="Final HTML")
|