phenomenon1981 commited on
Commit
d1732b1
·
1 Parent(s): f9f1653

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -158,17 +158,15 @@ with gr.Blocks() as myface:
158
  run.click(send_it8, inputs=[prompt, noise_level], outputs=[output8])
159
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
160
 
161
-
162
-
163
- myface.queue(concurrency_count=15)
164
 
165
  def queue_monitor():
166
  while True:
167
  if queue.qsize() >= 15:
168
  queue.queue.clear()
169
- time.sleep(30)
170
 
171
  monitor_thread = Thread(target=queue_monitor)
172
  monitor_thread.start()
173
 
174
- myface.launch(enable_queue=True, inline=True)
 
158
  run.click(send_it8, inputs=[prompt, noise_level], outputs=[output8])
159
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
160
 
161
+ myface.queue(concurrency_count=15)
 
 
162
 
163
  def queue_monitor():
164
  while True:
165
  if queue.qsize() >= 15:
166
  queue.queue.clear()
167
+ time.sleep(120)
168
 
169
  monitor_thread = Thread(target=queue_monitor)
170
  monitor_thread.start()
171
 
172
+ myface.launch(enable_queue=True, inline=True)