Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
126 |
|
127 |
clear_history.click(fn=clear_session,
|
128 |
inputs=[],
|
129 |
outputs=[textbox, chatbot],
|
130 |
-
concurrency_limit=
|
131 |
|
132 |
modify_system.click(fn=modify_system_session,
|
133 |
inputs=[system_input],
|
134 |
outputs=[system_state, system_input, chatbot],
|
135 |
-
concurrency_limit=
|
136 |
|
137 |
# Launching Gradio Interface with reduced threads for free plan
|
138 |
demo.queue(api_open=False)
|
139 |
-
demo.launch(max_threads=
|
|
|
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)"
|