Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -444,12 +444,26 @@ with gr.Blocks(theme=theme) as demo:
|
|
444 |
download_button = gr.File(label="Descargar Informe sobre Administración de Medicamentos a Recién Nacidos", value="Reporte.pdf")
|
445 |
|
446 |
# Chatbot
|
447 |
-
chatbot_output = gr.Chatbot(label="ChatBot")
|
448 |
-
chatbot_input = gr.Textbox(label="Tu mensaje")
|
449 |
-
submit_button = gr.Button("Enviar")
|
450 |
-
chatbot_history = gr.State(value=[])
|
451 |
-
image_url = gr.State(value=None)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
|
|
|
453 |
# Main accordion for categories
|
454 |
with gr.Accordion("Categorías de Preguntas", open=True):
|
455 |
|
|
|
444 |
download_button = gr.File(label="Descargar Informe sobre Administración de Medicamentos a Recién Nacidos", value="Reporte.pdf")
|
445 |
|
446 |
# Chatbot
|
447 |
+
#chatbot_output = gr.Chatbot(label="ChatBot")
|
448 |
+
#chatbot_input = gr.Textbox(label="Tu mensaje")
|
449 |
+
#submit_button = gr.Button("Enviar")
|
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
|
468 |
with gr.Accordion("Categorías de Preguntas", open=True):
|
469 |
|