Spaces:
Runtime error
Runtime error
Commit
·
7b401d5
1
Parent(s):
ebe38e7
backto chat3
Browse files
app.py
CHANGED
|
@@ -846,11 +846,11 @@ with gr.Blocks() as demo:
|
|
| 846 |
# upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
| 847 |
clear_button.click(clearall, None, chatbot)
|
| 848 |
retry_button.click(retry, chatbot, chatbot)
|
| 849 |
-
|
| 850 |
-
inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
stop_button.click(read_logs, None, logs, cancels=[inf2])
|
| 854 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
| 855 |
agentchoice.change(SetAgent, agentchoice, None)
|
| 856 |
frash_logs.click(read_logs, None, logs)
|
|
|
|
| 846 |
# upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
|
| 847 |
clear_button.click(clearall, None, chatbot)
|
| 848 |
retry_button.click(retry, chatbot, chatbot)
|
| 849 |
+
inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
|
| 850 |
+
# inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
| 851 |
+
# then(Inference_Agent, chatbot, [inputtext, chatbot])
|
| 852 |
+
stop_button.click(read_logs, None, logs, cancels=[inf1])
|
| 853 |
+
# stop_button.click(read_logs, None, logs, cancels=[inf2])
|
| 854 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
| 855 |
agentchoice.change(SetAgent, agentchoice, None)
|
| 856 |
frash_logs.click(read_logs, None, logs)
|