This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import logging | |
import os | |
# 配置日志 | |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') | |
# Hugging Face Space URL 和 API 令牌 | |
SPACE_URL = "https://rakersfu-rakelinux.hf.space" | |
HF_TOKEN = os.getenv("HF_TOKEN") # 从环境变量读取 HF_TOKEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.auth import HTTPBasicAuth | |
import os | |
import logging | |
from tenacity import retry, stop_after_attempt, wait_fixed | |
# 配置日志 | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' | |
logging.basicConfig( | |
level=logging.INFO, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.auth import HTTPBasicAuth | |
import os | |
import logging | |
import sys | |
from tenacity import retry, stop_after_attempt, wait_fixed | |
import time | |
# 配置日志(输出到文件和控制台) | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github.com | |
alive.github.com | |
api.github.com | |
avatars3.githubusercontent.com | |
avatars2.githubusercontent.com | |
camo.githubusercontent.com | |
cloud.githubusercontent.com | |
avatars1.githubusercontent.com | |
avatars0.githubusercontent.com | |
avatars.githubusercontent.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dns.resolver | |
import requests | |
import logging | |
import sys | |
import os | |
from pathlib import Path | |
from typing import List | |
from io import StringIO | |
# 配置日志(输出到文件和控制台) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
import logging | |
import sys | |
from pathlib import Path | |
# 配置日志(输出到文件和控制台) | |
log_file = '/tmp/scheduler.log' if os.path.exists('/tmp') else 'scheduler.log' | |
logging.basicConfig( | |
level=logging.DEBUG, |