Update ff.py
Browse files
ff.py
CHANGED
|
@@ -619,7 +619,7 @@ if os.path.exists('/data/ff/.mozilla/firefox/profiles.ini') and os.path.isfile('
|
|
| 619 |
print("检测到Firefox配置,启动定期重启循环...")
|
| 620 |
response = create_space(2)
|
| 621 |
print(response)
|
| 622 |
-
time.sleep(
|
| 623 |
github(2)
|
| 624 |
response = create_space(1)
|
| 625 |
full_name = response["name"]
|
|
@@ -649,6 +649,6 @@ if os.path.exists('/data/ff/.mozilla/firefox/profiles.ini') and os.path.isfile('
|
|
| 649 |
telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}启动结束")
|
| 650 |
# result = restart_huggingface_space(HF_USER2, HF_ID, HF_TOKON2)
|
| 651 |
# print(result)
|
| 652 |
-
break
|
| 653 |
# github(2)
|
| 654 |
# nv1_agent()
|
|
|
|
| 619 |
print("检测到Firefox配置,启动定期重启循环...")
|
| 620 |
response = create_space(2)
|
| 621 |
print(response)
|
| 622 |
+
time.sleep(21600)#21600 = 6小时
|
| 623 |
github(2)
|
| 624 |
response = create_space(1)
|
| 625 |
full_name = response["name"]
|
|
|
|
| 649 |
telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}启动结束")
|
| 650 |
# result = restart_huggingface_space(HF_USER2, HF_ID, HF_TOKON2)
|
| 651 |
# print(result)
|
| 652 |
+
# break
|
| 653 |
# github(2)
|
| 654 |
# nv1_agent()
|