hadadrjt commited on
Commit
bb7f36d
·
1 Parent(s): 6aae148

ai: Switch to gradio queuing (again).

Browse files
Files changed (1) hide show
  1. jarvis.py +1 -1
jarvis.py CHANGED
@@ -364,4 +364,4 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
364
  system_prompt.change(fn=lambda x: x, inputs=[system_prompt], outputs=[custom_prompt_state])
365
  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)
366
  msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
367
- jarvis.queue(default_concurrency_limit=2).launch(max_file_size="1mb")
 
364
  system_prompt.change(fn=lambda x: x, inputs=[system_prompt], outputs=[custom_prompt_state])
365
  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)
366
  msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
367
+ jarvis.launch(max_file_size="1mb")