Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
9f03412
1
Parent(s):
de6b696
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 restart_script_periodically():
|
19 |
while True:
|
20 |
-
time.sleep(
|
21 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
22 |
|
23 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|
|
|
17 |
|
18 |
def restart_script_periodically():
|
19 |
while True:
|
20 |
+
time.sleep(600) # 5 minutes
|
21 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
22 |
|
23 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|