Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,13 @@ with gr.Blocks() as demo:
|
|
76 |
yield history
|
77 |
|
78 |
# Event handlers
|
79 |
-
textbox.submit(add_user_message, [textbox, chatbot], [textbox, chatbot]).then(
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
bot_response, chatbot, chatbot
|
81 |
)
|
82 |
|
|
|
76 |
yield history
|
77 |
|
78 |
# Event handlers
|
79 |
+
submit_event = textbox.submit(add_user_message, [textbox, chatbot], [textbox, chatbot]).then(
|
80 |
+
bot_response, chatbot, chatbot
|
81 |
+
)
|
82 |
+
|
83 |
+
# Add a "Send" button
|
84 |
+
send_button = gr.Button("🚀 Send")
|
85 |
+
send_event = send_button.click(add_user_message, [textbox, chatbot], [textbox, chatbot]).then(
|
86 |
bot_response, chatbot, chatbot
|
87 |
)
|
88 |
|