MrDrmm commited on
Commit
e6a4473
·
verified ·
1 Parent(s): 3092d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
130
  trans_prompt.click(translate_to_en, [prompt], [prompt], queue=False, show_api=False)\
131
  .then(translate_to_en, [neg_prompt], [neg_prompt], queue=False, show_api=False)
132
 
133
- demo.queue(concurrency_count=50)
134
  #demo.queue(default_concurrency_limit=240, max_size=240)
135
- demo.launch(max_threads=400, ssr_mode=False)
136
  # https://github.com/gradio-app/gradio/issues/6339
 
130
  trans_prompt.click(translate_to_en, [prompt], [prompt], queue=False, show_api=False)\
131
  .then(translate_to_en, [neg_prompt], [neg_prompt], queue=False, show_api=False)
132
 
133
+
134
  #demo.queue(default_concurrency_limit=240, max_size=240)
135
+ demo.launch(max_threads=400, ssr_mode=True)
136
  # https://github.com/gradio-app/gradio/issues/6339