mimifuel2018 commited on
Commit
8884f60
·
verified ·
1 Parent(s): 9f6ce1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -122,18 +122,18 @@ with gr.Blocks() as demo:
122
  submit.click(model_chat,
123
  inputs=[textbox, chatbot, system_state],
124
  outputs=[textbox, chatbot, system_input],
125
- concurrency_limit=5)
126
 
127
  clear_history.click(fn=clear_session,
128
  inputs=[],
129
  outputs=[textbox, chatbot],
130
- concurrency_limit=5)
131
 
132
  modify_system.click(fn=modify_system_session,
133
  inputs=[system_input],
134
  outputs=[system_state, system_input, chatbot],
135
- concurrency_limit=5)
136
 
137
  # Launching Gradio Interface with reduced threads for free plan
138
  demo.queue(api_open=False)
139
- demo.launch(max_threads=5)"
 
122
  submit.click(model_chat,
123
  inputs=[textbox, chatbot, system_state],
124
  outputs=[textbox, chatbot, system_input],
125
+ concurrency_limit=20)
126
 
127
  clear_history.click(fn=clear_session,
128
  inputs=[],
129
  outputs=[textbox, chatbot],
130
+ concurrency_limit=20)
131
 
132
  modify_system.click(fn=modify_system_session,
133
  inputs=[system_input],
134
  outputs=[system_state, system_input, chatbot],
135
+ concurrency_limit=20)
136
 
137
  # Launching Gradio Interface with reduced threads for free plan
138
  demo.queue(api_open=False)
139
+ demo.launch(max_threads=20)"