Spaces:
Runtime error
Runtime error
Commit
·
dd27da8
1
Parent(s):
ad276ce
merge clear
Browse files
app.py
CHANGED
@@ -779,7 +779,7 @@ def Inference_Agent(history_inf):
|
|
779 |
response = agent.run(message)
|
780 |
time.sleep(0.1)
|
781 |
history_inf = history_inf + [(None, response)]
|
782 |
-
return history_inf
|
783 |
except Exception as e:
|
784 |
print("error:", e)
|
785 |
|
@@ -848,7 +848,7 @@ with gr.Blocks() as demo:
|
|
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, chatbot).\
|
852 |
then(ClearText, None, inputtext)
|
853 |
stop_button.click(read_logs, None, logs, cancels=[inf2])
|
854 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|
|
|
779 |
response = agent.run(message)
|
780 |
time.sleep(0.1)
|
781 |
history_inf = history_inf + [(None, response)]
|
782 |
+
return ["",history_inf]
|
783 |
except Exception as e:
|
784 |
print("error:", e)
|
785 |
|
|
|
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 |
then(ClearText, None, inputtext)
|
853 |
stop_button.click(read_logs, None, logs, cancels=[inf2])
|
854 |
upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
|