Qilan2 commited on
Commit
8c83ad2
·
verified ·
1 Parent(s): 4f7bc88

Update ff1.py

Browse files
Files changed (1) hide show
  1. ff1.py +5 -4
ff1.py CHANGED
@@ -663,10 +663,9 @@ if os.path.exists('/data/ff/.mozilla/firefox/profiles.ini') and os.path.isfile('
663
  # telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}开始启动")
664
  while True:
665
  print("检测到Firefox配置,启动定期重启循环...")
666
- response = create_space(2)
667
- print(response)
668
- time.sleep(21600)#21600 = 6小时
669
  create_space(5,"","",HF_SPACES_NAME)
 
 
670
  response = create_space(1)
671
  url = response["url"]
672
  full_name = response["name"]
@@ -690,12 +689,14 @@ if os.path.exists('/data/ff/.mozilla/firefox/profiles.ini') and os.path.isfile('
690
  create_space(3,"BOT_TOKEN",BOT_TOKEN,tmp_name)
691
  create_space(3,"HF_SPACES_NAME",HF_ID,tmp_name)
692
  time.sleep(2)
 
 
693
  result = restart_huggingface_space(HF_USER2, tmp_name, HF_TOKON2)
694
  print(f"{tmp_name}重启结果:",result)
695
  telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID} startup finished")
696
  # create_space(4,"","",CHAT_ID)
697
  # result = restart_huggingface_space(HF_USER2, HF_ID, HF_TOKON2)
698
  # print(result)
699
- # break
700
  # github(2)
701
  # nv1_agent()
 
663
  # telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}开始启动")
664
  while True:
665
  print("检测到Firefox配置,启动定期重启循环...")
 
 
 
666
  create_space(5,"","",HF_SPACES_NAME)
667
+ time.sleep(21600)#21600 = 6小时
668
+ github(2)
669
  response = create_space(1)
670
  url = response["url"]
671
  full_name = response["name"]
 
689
  create_space(3,"BOT_TOKEN",BOT_TOKEN,tmp_name)
690
  create_space(3,"HF_SPACES_NAME",HF_ID,tmp_name)
691
  time.sleep(2)
692
+ create_space(4,"","",CHAT_ID)
693
+ time.sleep(2)
694
  result = restart_huggingface_space(HF_USER2, tmp_name, HF_TOKON2)
695
  print(f"{tmp_name}重启结果:",result)
696
  telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID} startup finished")
697
  # create_space(4,"","",CHAT_ID)
698
  # result = restart_huggingface_space(HF_USER2, HF_ID, HF_TOKON2)
699
  # print(result)
700
+ break
701
  # github(2)
702
  # nv1_agent()