Tentatively increase the concurrent limit given the queue is very long.

#1
by xianbao HF staff - opened
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,7 +90,7 @@ with gr.Blocks() as demo:
90
  sumbit.click(model_chat,
91
  inputs=[textbox, chatbot, system_state],
92
  outputs=[textbox, chatbot, system_input],
93
- concurrency_limit = 5)
94
  clear_history.click(fn=clear_session,
95
  inputs=[],
96
  outputs=[textbox, chatbot])
@@ -99,4 +99,4 @@ with gr.Blocks() as demo:
99
  outputs=[system_state, system_input, chatbot])
100
 
101
  demo.queue(api_open=False)
102
- demo.launch(max_threads=5)
 
90
  sumbit.click(model_chat,
91
  inputs=[textbox, chatbot, system_state],
92
  outputs=[textbox, chatbot, system_input],
93
+ concurrency_limit = 10)
94
  clear_history.click(fn=clear_session,
95
  inputs=[],
96
  outputs=[textbox, chatbot])
 
99
  outputs=[system_state, system_input, chatbot])
100
 
101
  demo.queue(api_open=False)
102
+ demo.launch(max_threads=10)