Qilan2 commited on
Commit
41eeb81
·
verified ·
1 Parent(s): eb3c517

Update server10.py

Browse files
Files changed (1) hide show
  1. server10.py +5 -5
server10.py CHANGED
@@ -497,17 +497,17 @@ def check_system_resources():
497
  # 可选:打印具体的使用率
498
  print(f"CPU使用率: {cpu_usage}%")
499
  print(f"内存使用率: {memory_usage}%")
500
- result = restart_huggingface_space(huggingface_user, huggingface_id, huggingface_tokon)
501
- print(result)
502
- time.sleep(6666666)
503
  else:
504
  print("系统资源正常")
505
- threading.Thread(target=SillyTavern, daemon=True).start()
506
 
507
  # 调用函数
508
  check_system_resources()
509
 
510
-
511
  # SillyTavern()
512
  time.sleep(60)
513
  check_api1()
 
497
  # 可选:打印具体的使用率
498
  print(f"CPU使用率: {cpu_usage}%")
499
  print(f"内存使用率: {memory_usage}%")
500
+ # result = restart_huggingface_space(huggingface_user, huggingface_id, huggingface_tokon)
501
+ # print(result)
502
+ # time.sleep(6666666)
503
  else:
504
  print("系统资源正常")
505
+
506
 
507
  # 调用函数
508
  check_system_resources()
509
 
510
+ threading.Thread(target=SillyTavern, daemon=True).start()
511
  # SillyTavern()
512
  time.sleep(60)
513
  check_api1()