Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,13 @@ def clear_chat_and_history():
|
|
88 |
return "", []
|
89 |
|
90 |
with gr.Blocks() as demo:
|
|
|
|
|
91 |
with gr.Row():
|
92 |
msg = gr.Textbox(label="Tu mensaje", placeholder="Escribe aqu铆...", lines=1)
|
93 |
send_btn = gr.Button("Enviar")
|
94 |
-
chatbot = gr.Chatbot()
|
95 |
-
# Usar un Button regular en lugar de ClearButton para tener control sobre la funci贸n que se ejecuta
|
96 |
clear_btn = gr.Button("Limpiar Chat")
|
97 |
-
|
98 |
# Acci贸n al presionar el bot贸n Enviar
|
99 |
send_btn.click(fn=respond, inputs=msg, outputs=chatbot)
|
100 |
# Configurar el bot贸n de limpieza para ejecutar clear_chat_and_history cuando se presione
|
|
|
88 |
return "", []
|
89 |
|
90 |
with gr.Blocks() as demo:
|
91 |
+
chatbot = gr.Chatbot()
|
92 |
+
# Usar un Button regular en lugar de ClearButton para tener control sobre la funci贸n que se ejecuta
|
93 |
with gr.Row():
|
94 |
msg = gr.Textbox(label="Tu mensaje", placeholder="Escribe aqu铆...", lines=1)
|
95 |
send_btn = gr.Button("Enviar")
|
|
|
|
|
96 |
clear_btn = gr.Button("Limpiar Chat")
|
97 |
+
|
98 |
# Acci贸n al presionar el bot贸n Enviar
|
99 |
send_btn.click(fn=respond, inputs=msg, outputs=chatbot)
|
100 |
# Configurar el bot贸n de limpieza para ejecutar clear_chat_and_history cuando se presione
|