Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
·
f9f1653
1
Parent(s):
fa7cf46
Update app.py
Browse files
app.py
CHANGED
@@ -160,14 +160,14 @@ with gr.Blocks() as myface:
|
|
160 |
|
161 |
|
162 |
|
163 |
-
|
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 |
|
|
|
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 |
|