hadadrjt commited on
Commit
6d927b2
·
1 Parent(s): 9209ef8

ai: Limit 3 max request.

Browse files
Files changed (1) hide show
  1. jarvis.py +1 -1
jarvis.py CHANGED
@@ -325,4 +325,4 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
325
  system_prompt.change(fn=lambda x: x, inputs=[system_prompt], outputs=[custom_prompt_state])
326
  msg.submit(fn=respond_async, inputs=[msg, user_history, selected_model, user_session, custom_prompt_state], outputs=[chatbot, msg, user_session], api_name=INTERNAL_AI_GET_SERVER)
327
  msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
328
- jarvis.launch(max_file_size="1mb")
 
325
  system_prompt.change(fn=lambda x: x, inputs=[system_prompt], outputs=[custom_prompt_state])
326
  msg.submit(fn=respond_async, inputs=[msg, user_history, selected_model, user_session, custom_prompt_state], outputs=[chatbot, msg, user_session], api_name=INTERNAL_AI_GET_SERVER)
327
  msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
328
+ jarvis.queue(default_concurrency_limit=3).launch(max_file_size="1mb")