Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
9dc4a13
1
Parent(s):
ff94db3
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0", live=Tru
|
|
18 |
|
19 |
def restart_script_periodically():
|
20 |
while True:
|
21 |
-
time.sleep(
|
22 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
23 |
|
24 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|
|
|
18 |
|
19 |
def restart_script_periodically():
|
20 |
while True:
|
21 |
+
time.sleep(60) # 5 minutes
|
22 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
23 |
|
24 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|