hasanbasbunar commited on
Commit
f734da8
·
verified ·
1 Parent(s): 7262ee9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -245,7 +245,7 @@ h1 { text-align: center; color: #4F46E5; font-size: 2.5em; }
245
  .image-container img { max-height: 400px; width: auto; }
246
  """
247
 
248
- with gr.Blocks(theme=gr.themes.Soft(), css=css, title="Nano Vision Studio") as demo:
249
 
250
  gr.Markdown("# Nano 🍌 Vision Studio")
251
  gr.Markdown("### The Ultimate Interface: 4K Generation, Grounding, Multi-Image Composition & Iterative Chat")
@@ -349,11 +349,11 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, title="Nano Vision Studio") as d
349
  with gr.Row():
350
  with gr.Column(scale=2):
351
  # Main chatbot that will display text AND images interleaved
352
- chat_history = gr.Chatbot(label="Session History", height=600, type="messages", bubble_full_width=False)
353
 
354
  with gr.Row():
355
  chat_input = gr.Textbox(label="Your Message", placeholder="e.g., 'Generate a portrait', then 'Add glasses'...", scale=4)
356
- chat_img = gr.Image(label="Input Image (Optional)", type="filepath", height=100, scale=1, show_download_button=False, container=False)
357
 
358
  with gr.Row():
359
  chat_btn = gr.Button("Send", variant="primary")
@@ -407,4 +407,4 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, title="Nano Vision Studio") as d
407
  """)
408
 
409
  if __name__ == "__main__":
410
- demo.launch()
 
245
  .image-container img { max-height: 400px; width: auto; }
246
  """
247
 
248
+ with gr.Blocks(title="Nano Vision Studio") as demo:
249
 
250
  gr.Markdown("# Nano 🍌 Vision Studio")
251
  gr.Markdown("### The Ultimate Interface: 4K Generation, Grounding, Multi-Image Composition & Iterative Chat")
 
349
  with gr.Row():
350
  with gr.Column(scale=2):
351
  # Main chatbot that will display text AND images interleaved
352
+ chat_history = gr.Chatbot(label="Session History", height=600)
353
 
354
  with gr.Row():
355
  chat_input = gr.Textbox(label="Your Message", placeholder="e.g., 'Generate a portrait', then 'Add glasses'...", scale=4)
356
+ chat_img = gr.Image(label="Input Image (Optional)", type="filepath", height=100, scale=1, container=False)
357
 
358
  with gr.Row():
359
  chat_btn = gr.Button("Send", variant="primary")
 
407
  """)
408
 
409
  if __name__ == "__main__":
410
+ demo.launch(theme=gr.themes.Soft(), css=css)