Spaces:
Runtime error
Runtime error
littlebird13
commited on
Commit
•
f6970cf
1
Parent(s):
0d90efe
Update app.py
Browse files
app.py
CHANGED
@@ -114,11 +114,11 @@ Qwen2-Audio-Instruct <a href="https://modelscope.cn/models/qwen/Qwen2-Audio-7B-I
|
|
114 |
# submit_btn.click(reset_user_input, [], [query])
|
115 |
user_input.submit(fn=add_text,
|
116 |
inputs=[chatbot, task_history, user_input],
|
117 |
-
outputs=[chatbot, task_history, user_input]).then(
|
118 |
predict, [chatbot, task_history], [chatbot, task_history], show_progress=True
|
119 |
)
|
120 |
-
empty_bin.click(reset_state, outputs=[chatbot, task_history], show_progress=True)
|
121 |
-
regen_btn.click(regenerate, [chatbot, task_history], [chatbot, task_history], show_progress=True)
|
122 |
# addfile_btn.upload(add_file, [chatbot, task_history, addfile_btn], [chatbot, task_history], show_progress=True)
|
123 |
|
124 |
demo.queue().launch(
|
@@ -126,4 +126,5 @@ demo.queue().launch(
|
|
126 |
inbrowser=True,
|
127 |
server_port=7860,
|
128 |
server_name="0.0.0.0",
|
|
|
129 |
)
|
|
|
114 |
# submit_btn.click(reset_user_input, [], [query])
|
115 |
user_input.submit(fn=add_text,
|
116 |
inputs=[chatbot, task_history, user_input],
|
117 |
+
outputs=[chatbot, task_history, user_input],concurrency_limit = 40).then(
|
118 |
predict, [chatbot, task_history], [chatbot, task_history], show_progress=True
|
119 |
)
|
120 |
+
empty_bin.click(reset_state, outputs=[chatbot, task_history], show_progress=True,concurrency_limit = 40)
|
121 |
+
regen_btn.click(regenerate, [chatbot, task_history], [chatbot, task_history], show_progress=True,concurrency_limit = 40)
|
122 |
# addfile_btn.upload(add_file, [chatbot, task_history, addfile_btn], [chatbot, task_history], show_progress=True)
|
123 |
|
124 |
demo.queue().launch(
|
|
|
126 |
inbrowser=True,
|
127 |
server_port=7860,
|
128 |
server_name="0.0.0.0",
|
129 |
+
max_threads=40
|
130 |
)
|