Spaces:
Sleeping
Sleeping
added so that enter will submit message
Browse files
app.py
CHANGED
|
@@ -284,5 +284,23 @@ with gr.Blocks() as demo:
|
|
| 284 |
],
|
| 285 |
outputs=[chat_box, msg]
|
| 286 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
|
| 288 |
demo.launch(debug=True)
|
|
|
|
| 284 |
],
|
| 285 |
outputs=[chat_box, msg]
|
| 286 |
)
|
| 287 |
+
msg.submit(
|
| 288 |
+
fn=respond,
|
| 289 |
+
inputs=[
|
| 290 |
+
msg,
|
| 291 |
+
chat_box,
|
| 292 |
+
language,
|
| 293 |
+
chatbot_mode,
|
| 294 |
+
destinations,
|
| 295 |
+
trip_length,
|
| 296 |
+
trip_unit,
|
| 297 |
+
trip_season,
|
| 298 |
+
luggage_types,
|
| 299 |
+
luggage_size,
|
| 300 |
+
food_prefs,
|
| 301 |
+
activity
|
| 302 |
+
],
|
| 303 |
+
outputs=[chat_box, msg]
|
| 304 |
+
)
|
| 305 |
|
| 306 |
demo.launch(debug=True)
|