Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
970838d
1
Parent(s):
90478db
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ 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(
|
17 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
18 |
|
19 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|
|
|
13 |
|
14 |
def restart_script_periodically():
|
15 |
while True:
|
16 |
+
time.sleep(300) # 5 minutes
|
17 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
18 |
|
19 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|