Update app.py
Browse files
app.py
CHANGED
|
@@ -125,14 +125,14 @@ with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as d
|
|
| 125 |
# file_msg = btn.upload(add_file, [chatbot, btn], [chatbot], queue=False).then(
|
| 126 |
# bot, chatbot, chatbot
|
| 127 |
# )
|
| 128 |
-
|
| 129 |
None,
|
| 130 |
None,
|
| 131 |
[chatbot]
|
| 132 |
)
|
| 133 |
file_msg = btn.upload(on_file_upload, [chatbot, btn], [chatbot]).then(
|
|
|
|
| 134 |
None,
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
)
|
| 138 |
demo.launch()
|
|
|
|
| 125 |
# file_msg = btn.upload(add_file, [chatbot, btn], [chatbot], queue=False).then(
|
| 126 |
# bot, chatbot, chatbot
|
| 127 |
# )
|
| 128 |
+
txt_msg = txt.submit(on_text_submit, [chatbot, txt], [chatbot, txt]).then(
|
| 129 |
None,
|
| 130 |
None,
|
| 131 |
[chatbot]
|
| 132 |
)
|
| 133 |
file_msg = btn.upload(on_file_upload, [chatbot, btn], [chatbot]).then(
|
| 134 |
+
on_file_upload,
|
| 135 |
None,
|
| 136 |
+
[chatbot, btn]
|
| 137 |
+
)
|
|
|
|
| 138 |
demo.launch()
|