C2MV commited on
Commit
37a1f2a
·
verified ·
1 Parent(s): 21ad0f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -450,18 +450,17 @@ with gr.Blocks(theme=theme) as demo:
450
  #chatbot_history = gr.State(value=[])
451
  #image_url = gr.State(value=None)
452
 
453
- with gr.Blocks() as demo:
454
- with gr.Row():
455
- with gr.Column(scale=1):
456
- chatbot_output = gr.Chatbot(label="ChatBot", elem_id="chatbot_output")
457
- chatbot_input = gr.Textbox(label="Tu mensaje", elem_id="chatbot_input")
458
- submit_button = gr.Button("Enviar")
459
- chatbot_history = gr.State(value=[])
460
 
461
- with gr.Column(scale=1):
462
- image_url = gr.Image(value=None, label="Image URL", elem_id="image_display")
463
 
464
- #submit_button.click(chatbot_response, [chatbot_input, chatbot_history], [chatbot_output, image_url])
465
 
466
 
467
  # Main accordion for categories
 
450
  #chatbot_history = gr.State(value=[])
451
  #image_url = gr.State(value=None)
452
 
453
+ with gr.Row():
454
+ with gr.Column(scale=1):
455
+ chatbot_output = gr.Chatbot(label="ChatBot", elem_id="chatbot_output")
456
+ chatbot_input = gr.Textbox(label="Tu mensaje", elem_id="chatbot_input")
457
+ submit_button = gr.Button("Enviar")
458
+ chatbot_history = gr.State(value=[])
 
459
 
460
+ with gr.Column(scale=1):
461
+ image_url = gr.Image(value=None, label="Image URL", elem_id="image_display")
462
 
463
+ submit_button.click(chatbot_response, [chatbot_input, chatbot_history], [chatbot_output, image_url])
464
 
465
 
466
  # Main accordion for categories