Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
|
|
22 |
|
23 |
def restart_script_periodically():
|
24 |
while True:
|
25 |
-
time.sleep(
|
26 |
try:
|
27 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
28 |
except:
|
|
|
22 |
|
23 |
def restart_script_periodically():
|
24 |
while True:
|
25 |
+
time.sleep(600) # 10 minutes
|
26 |
try:
|
27 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
28 |
except:
|