Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -226,8 +226,8 @@ with gr.Blocks() as ux:
|
|
226 |
file_name=gr.Textbox(label="File Name")
|
227 |
file_btn=gr.Button("Load Files")
|
228 |
file_json=gr.JSON()
|
229 |
-
sub_b = submit_b.click(agent, [chatbot
|
230 |
-
sub_p = prompt.submit(agent, [chatbot
|
231 |
stop_b.click(None,None,None, cancels=[sub_b,sub_p])
|
232 |
ux.queue(default_concurrency_limit=20).launch(max_threads=40)
|
233 |
|
|
|
226 |
file_name=gr.Textbox(label="File Name")
|
227 |
file_btn=gr.Button("Load Files")
|
228 |
file_json=gr.JSON()
|
229 |
+
sub_b = submit_b.click(agent, [chatbot],chatbot)
|
230 |
+
sub_p = prompt.submit(agent, [chatbot],chatbot)
|
231 |
stop_b.click(None,None,None, cancels=[sub_b,sub_p])
|
232 |
ux.queue(default_concurrency_limit=20).launch(max_threads=40)
|
233 |
|