phenomenon1981 commited on
Commit
f2c27b1
1 Parent(s): 64bd55d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -159,15 +159,5 @@ with gr.Blocks() as myface:
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() >= 150:
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)
173
-
 
159
  see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt])
160
 
161
  myface.queue(concurrency_count=15)
 
 
 
 
 
 
 
 
 
 
162
  myface.launch(enable_queue=True, inline=True)
163
+ reset_queue_thread.join()