Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -368,7 +368,7 @@ with gr.Blocks() as demo:
|
|
| 368 |
</center>
|
| 369 |
""".format(encoded_image))
|
| 370 |
with gr.Row():
|
| 371 |
-
chatbot = gr.Chatbot(
|
| 372 |
with gr.Row():
|
| 373 |
with gr.Row():
|
| 374 |
with gr.Column(scale=4):
|
|
@@ -377,9 +377,6 @@ with gr.Blocks() as demo:
|
|
| 377 |
btn = gr.Button("Enviar")
|
| 378 |
clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
|
| 379 |
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
btn.click(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
| 384 |
msg.submit(respond, inputs=[msg, chatbot], outputs=[msg, chatbot]) #Press enter to submit
|
| 385 |
clear.click(clear_chat,inputs=[msg, chatbot], outputs=[msg, chatbot])
|
|
|
|
| 368 |
</center>
|
| 369 |
""".format(encoded_image))
|
| 370 |
with gr.Row():
|
| 371 |
+
chatbot = gr.Chatbot(lines=10) #just to fit the notebook
|
| 372 |
with gr.Row():
|
| 373 |
with gr.Row():
|
| 374 |
with gr.Column(scale=4):
|
|
|
|
| 377 |
btn = gr.Button("Enviar")
|
| 378 |
clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
|
| 379 |
|
|
|
|
|
|
|
|
|
|
| 380 |
btn.click(respond, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
| 381 |
msg.submit(respond, inputs=[msg, chatbot], outputs=[msg, chatbot]) #Press enter to submit
|
| 382 |
clear.click(clear_chat,inputs=[msg, chatbot], outputs=[msg, chatbot])
|