phenomenon1981 commited on
Commit
2a81cc9
·
1 Parent(s): f552bee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -161,7 +161,6 @@ with gr.Blocks() as myface:
161
 
162
 
163
  myface.queue(concurrency_count=8)
164
- myface.launch(enable_queue=True, inline=True)
165
 
166
  def queue_monitor():
167
  while True:
@@ -169,7 +168,7 @@ def queue_monitor():
169
  queue.queue.clear()
170
  time.sleep(30)
171
 
172
- monitor_thread = Thread(target=queue_monitor)
173
- monitor_thread.start()
174
 
175
- myface.launch(enable_queue=True, inline=True)
 
161
 
162
 
163
  myface.queue(concurrency_count=8)
 
164
 
165
  def queue_monitor():
166
  while True:
 
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)