ACCA225 commited on
Commit
e674768
1 Parent(s): bb5c93a

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +5 -3
app2.py CHANGED
@@ -429,11 +429,11 @@ def session_saver():
429
  cp.cuda.Stream.null.synchronize()
430
  time.sleep(600)
431
 
432
- #keepliving_thread = threading.Thread(target=session_saver)
433
  net_thread = threading.Thread(target=zrok)
434
 
435
  net_thread.start()
436
- #keepliving_thread.start()
437
 
438
  # 要检测的网站
439
  #website_url = "https://surely-definite-monarch.ngrok-free.app"
@@ -444,5 +444,7 @@ net_thread.start()
444
  # 第一次立即运行一次
445
  #run_check_periodically(website_url, interval)
446
 
 
 
447
  monitor_gpu()
448
- #keepliving_thread.join()
 
429
  cp.cuda.Stream.null.synchronize()
430
  time.sleep(600)
431
 
432
+ keepliving_thread = threading.Thread(target=session_saver)
433
  net_thread = threading.Thread(target=zrok)
434
 
435
  net_thread.start()
436
+ keepliving_thread.start()
437
 
438
  # 要检测的网站
439
  #website_url = "https://surely-definite-monarch.ngrok-free.app"
 
444
  # 第一次立即运行一次
445
  #run_check_periodically(website_url, interval)
446
 
447
+ start_thread = threading.Thread(target=start)
448
+ start_thread.start()
449
  monitor_gpu()
450
+ keepliving_thread.join()