Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
0cad9da
1
Parent(s):
cfbd7dc
Update app.py
Browse files
app.py
CHANGED
@@ -13,14 +13,14 @@ proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", live=Tru
|
|
13 |
|
14 |
def restart_script_periodically():
|
15 |
while True:
|
16 |
-
time.sleep(600) #
|
17 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
18 |
|
19 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|
20 |
restart_thread.start()
|
21 |
|
22 |
queue = Queue()
|
23 |
-
queue_threshold =
|
24 |
|
25 |
queue_length_counter = 0
|
26 |
|
|
|
13 |
|
14 |
def restart_script_periodically():
|
15 |
while True:
|
16 |
+
time.sleep(600) # 10 minutes
|
17 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
18 |
|
19 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|
20 |
restart_thread.start()
|
21 |
|
22 |
queue = Queue()
|
23 |
+
queue_threshold = 50
|
24 |
|
25 |
queue_length_counter = 0
|
26 |
|