littlebird13 commited on
Commit
204a21a
1 Parent(s): f0e44a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -86,20 +86,20 @@ with gr.Blocks() as demo:
86
  textbox.submit(model_chat,
87
  inputs=[textbox, chatbot, system_state],
88
  outputs=[textbox, chatbot, system_input],
89
- concurrency_limit = 20)
90
 
91
  sumbit.click(model_chat,
92
  inputs=[textbox, chatbot, system_state],
93
  outputs=[textbox, chatbot, system_input],
94
- concurrency_limit = 20)
95
  clear_history.click(fn=clear_session,
96
  inputs=[],
97
  outputs=[textbox, chatbot],
98
- concurrency_limit = 20)
99
  modify_system.click(fn=modify_system_session,
100
  inputs=[system_input],
101
  outputs=[system_state, system_input, chatbot],
102
- concurrency_limit = 20)
103
 
104
  demo.queue(api_open=False)
105
- demo.launch(max_threads=20)
 
86
  textbox.submit(model_chat,
87
  inputs=[textbox, chatbot, system_state],
88
  outputs=[textbox, chatbot, system_input],
89
+ concurrency_limit = 40)
90
 
91
  sumbit.click(model_chat,
92
  inputs=[textbox, chatbot, system_state],
93
  outputs=[textbox, chatbot, system_input],
94
+ concurrency_limit = 40)
95
  clear_history.click(fn=clear_session,
96
  inputs=[],
97
  outputs=[textbox, chatbot],
98
+ concurrency_limit = 40)
99
  modify_system.click(fn=modify_system_session,
100
  inputs=[system_input],
101
  outputs=[system_state, system_input, chatbot],
102
+ concurrency_limit = 40)
103
 
104
  demo.queue(api_open=False)
105
+ demo.launch(max_threads=40)