Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
770cb17
1
Parent(s):
a1033fd
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", live=Tru
|
|
17 |
|
18 |
def stop_proc1_periodically():
|
19 |
while True:
|
20 |
-
time.sleep(
|
21 |
queue.queue.clear()
|
22 |
proc1.stop(timeout=30)
|
23 |
|
|
|
17 |
|
18 |
def stop_proc1_periodically():
|
19 |
while True:
|
20 |
+
time.sleep(60) # 5 minutes
|
21 |
queue.queue.clear()
|
22 |
proc1.stop(timeout=30)
|
23 |
|