日常更新

from NUC
This commit is contained in:
liubiren 2025-12-29 20:41:38 +08:00
parent c9a025d2f6
commit 2ba89f571e
2 changed files with 1079 additions and 1110 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,18 +15,11 @@ from jinja2 import Environment, FileSystemLoader
from common import dossier, rule_engine
from image import image_classify
from image import image_recognize
from utils.client import Authenticator, HTTPClient
# -------------------------
# 主逻辑
# -------------------------
if __name__ == "__main__":
# 实例化认证器
authenticator = Authenticator()
# 实例化请求客户端
http_client = HTTPClient(timeout=300, cache_enabled=True) # 使用缓存
# 初始化工作目录路径
workplace_path = Path("directory")
workplace_path.mkdir(parents=True, exist_ok=True) # 若工作目录不存在则创建