Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -195,7 +195,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 195 |
submit_button.click(
|
| 196 |
fn=send_message,
|
| 197 |
inputs=[user_input, max_tokens_slider, temperature_slider, top_p_slider, current_convo_id, history_state],
|
| 198 |
-
outputs=[chatbot, history_state, conversation_selector]
|
|
|
|
| 199 |
).then(
|
| 200 |
fn=lambda: gr.update(value=""),
|
| 201 |
inputs=None,
|
|
@@ -229,5 +230,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 229 |
|
| 230 |
if __name__ == "__main__":
|
| 231 |
# first positional argument = concurrency_count
|
| 232 |
-
demo.queue(
|
| 233 |
|
|
|
|
| 195 |
submit_button.click(
|
| 196 |
fn=send_message,
|
| 197 |
inputs=[user_input, max_tokens_slider, temperature_slider, top_p_slider, current_convo_id, history_state],
|
| 198 |
+
outputs=[chatbot, history_state, conversation_selector],
|
| 199 |
+
concurrency_limit=16
|
| 200 |
).then(
|
| 201 |
fn=lambda: gr.update(value=""),
|
| 202 |
inputs=None,
|
|
|
|
| 230 |
|
| 231 |
if __name__ == "__main__":
|
| 232 |
# first positional argument = concurrency_count
|
| 233 |
+
demo.queue().launch(share=True, ssr_mode=False)
|
| 234 |
|