Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ with gr.Blocks() as demo:
|
|
86 |
with gr.Row():
|
87 |
person = gr.Textbox(label="Escribí el nombre del personaje famoso:")
|
88 |
with gr.Row():
|
89 |
-
chatbot = gr.Chatbot( height=
|
90 |
with gr.Row():
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=4):
|
@@ -95,9 +95,6 @@ with gr.Blocks() as demo:
|
|
95 |
btn = gr.Button("Enviar")
|
96 |
clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
|
97 |
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
btn.click(respond, inputs=[msg,person, chatbot], outputs=[msg, chatbot])
|
102 |
msg.submit(respond, inputs=[msg, person,chatbot], outputs=[msg, chatbot]) #Press enter to submit
|
103 |
clear.click(clear_chat,inputs=[msg, chatbot], outputs=[msg, chatbot])
|
|
|
86 |
with gr.Row():
|
87 |
person = gr.Textbox(label="Escribí el nombre del personaje famoso:")
|
88 |
with gr.Row():
|
89 |
+
chatbot = gr.Chatbot( height=250) #just to fit the notebook
|
90 |
with gr.Row():
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=4):
|
|
|
95 |
btn = gr.Button("Enviar")
|
96 |
clear = gr.ClearButton(components=[msg, chatbot], value="Borrar chat")
|
97 |
|
|
|
|
|
|
|
98 |
btn.click(respond, inputs=[msg,person, chatbot], outputs=[msg, chatbot])
|
99 |
msg.submit(respond, inputs=[msg, person,chatbot], outputs=[msg, chatbot]) #Press enter to submit
|
100 |
clear.click(clear_chat,inputs=[msg, chatbot], outputs=[msg, chatbot])
|