Update app.py
Browse files
app.py
CHANGED
|
@@ -337,7 +337,19 @@ label.svelte-1to105q {
|
|
| 337 |
|
| 338 |
|
| 339 |
demo.load(fn=init, outputs=[chatbot, step, language, questions, followup_mode, followup_stage])
|
| 340 |
-
|
| 341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
|
| 343 |
demo.queue().launch()
|
|
|
|
| 337 |
|
| 338 |
|
| 339 |
demo.load(fn=init, outputs=[chatbot, step, language, questions, followup_mode, followup_stage])
|
| 340 |
+
demo.load(fn=init, outputs=[chatbot, step, language, questions, followup_mode, followup_stage])
|
| 341 |
+
user_input.submit(
|
| 342 |
+
respond,
|
| 343 |
+
[user_input, state, step, language, questions, followup_mode, followup_stage],
|
| 344 |
+
[chatbot, user_input, step, language, questions, followup_mode, followup_stage]
|
| 345 |
+
)
|
| 346 |
+
|
| 347 |
+
send_btn.click(
|
| 348 |
+
respond,
|
| 349 |
+
[user_input, state, step, language, questions, followup_mode, followup_stage],
|
| 350 |
+
[chatbot, user_input, step, language, questions, followup_mode, followup_stage]
|
| 351 |
+
)
|
| 352 |
+
|
| 353 |
+
demo.queue().launch()
|
| 354 |
|
| 355 |
demo.queue().launch()
|