phenomenon1981
commited on
Commit
•
3eabbe6
1
Parent(s):
0eafd98
Update app.py
Browse files
app.py
CHANGED
@@ -157,7 +157,7 @@ block.queue(concurrency_count=30, max_size=100).launch(max_threads=150)
|
|
157 |
|
158 |
def restart_script_periodically():
|
159 |
while True:
|
160 |
-
time.sleep(
|
161 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
162 |
|
163 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|
|
|
157 |
|
158 |
def restart_script_periodically():
|
159 |
while True:
|
160 |
+
time.sleep(120) # 5 minutes
|
161 |
os.execl(sys.executable, sys.executable, *sys.argv)
|
162 |
|
163 |
restart_thread = Thread(target=restart_script_periodically, daemon=True)
|