phenomenon1981 commited on
Commit
dfef1a9
·
1 Parent(s): 2091418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,10 +151,10 @@ with gr.Blocks() as myface:
151
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
152
 
153
  myface.launch(enable_queue=True, inline=True)
154
- block.queue(concurrency_count=30, max_size=90).launch(max_threads=100)
155
  def restart_script_periodically():
156
  while True:
157
- time.sleep(600) # 5 minutes
158
  os.execl(sys.executable, sys.executable, *sys.argv)
159
 
160
  restart_thread = Thread(target=restart_script_periodically, daemon=True)
 
151
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
152
 
153
  myface.launch(enable_queue=True, inline=True)
154
+ block.queue(concurrency_count=30, max_size=40).launch(max_threads=100)
155
  def restart_script_periodically():
156
  while True:
157
+ time.sleep(120) # 5 minutes
158
  os.execl(sys.executable, sys.executable, *sys.argv)
159
 
160
  restart_thread = Thread(target=restart_script_periodically, daemon=True)