Rahul-8799 commited on
Commit
3e08048
·
verified ·
1 Parent(s): 5b769a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 (LangGraph + Mistral)")
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('\"', '&quot;')}\" width='100%' height='600px'></iframe>")
46
 
47
  gr.Markdown("### 🖥️ Generated HTML Code")
48
  html_output = gr.Textbox(lines=15, label="Final HTML")