Spaces:
Runtime error
Runtime error
Commit
·
897c3b6
1
Parent(s):
2474159
add clear text
Browse files
app.py
CHANGED
|
@@ -845,7 +845,8 @@ with gr.Blocks() as demo:
|
|
| 845 |
retry_button.click(retry, chatbot, chatbot)
|
| 846 |
# inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
|
| 847 |
inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
| 848 |
-
then(Inference_Agent, chatbot, chatbot)
|
|
|
|
| 849 |
stop_button.click(read_logs, None, logs, cancels=[inf2])
|
| 850 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
| 851 |
agentchoice.change(SetAgent, agentchoice, None)
|
|
|
|
| 845 |
retry_button.click(retry, chatbot, chatbot)
|
| 846 |
# inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
|
| 847 |
inf2 = inputtext.submit(display_input, [inputtext, chatbot], chatbot).\
|
| 848 |
+
then(Inference_Agent, chatbot, chatbot).\
|
| 849 |
+
then(None, None, inputtext = "")
|
| 850 |
stop_button.click(read_logs, None, logs, cancels=[inf2])
|
| 851 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
| 852 |
agentchoice.change(SetAgent, agentchoice, None)
|