Update app2.py
Browse files
app2.py
CHANGED
@@ -388,11 +388,11 @@ def session_saver():
|
|
388 |
cp.cuda.Stream.null.synchronize()
|
389 |
time.sleep(500)
|
390 |
|
391 |
-
keepliving_thread = threading.Thread(target=session_saver)
|
392 |
net_thread = threading.Thread(target=zrok)
|
393 |
|
394 |
net_thread.start()
|
395 |
-
keepliving_thread.start()
|
396 |
|
397 |
# 要检测的网站
|
398 |
website_url = "https://surely-definite-monarch.ngrok-free.app"
|
@@ -404,4 +404,5 @@ interval = 1800
|
|
404 |
run_check_periodically(website_url, interval)
|
405 |
|
406 |
monitor_gpu()
|
407 |
-
keepliving_thread.join()
|
|
|
|
388 |
cp.cuda.Stream.null.synchronize()
|
389 |
time.sleep(500)
|
390 |
|
391 |
+
#keepliving_thread = threading.Thread(target=session_saver)
|
392 |
net_thread = threading.Thread(target=zrok)
|
393 |
|
394 |
net_thread.start()
|
395 |
+
#keepliving_thread.start()
|
396 |
|
397 |
# 要检测的网站
|
398 |
website_url = "https://surely-definite-monarch.ngrok-free.app"
|
|
|
404 |
run_check_periodically(website_url, interval)
|
405 |
|
406 |
monitor_gpu()
|
407 |
+
#keepliving_thread.join()
|
408 |
+
time.sleep(9999999)
|