Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 454 |
-
with gr.
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
chatbot_history = gr.State(value=[])
|
| 460 |
|
| 461 |
-
|
| 462 |
-
|
| 463 |
|
| 464 |
-
|
| 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
|