|
|
|
@ -13,9 +13,9 @@ class ContentAnalyzer:
|
|
|
|
|
self,
|
|
|
|
|
api_key: str = "sk-01d13a39e09844038322108ecdbd1bbc",
|
|
|
|
|
base_url: str = "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
|
|
|
model: str = "deepseek-v3",
|
|
|
|
|
model: str = "deepseek-r1",
|
|
|
|
|
max_retries: int = 10,
|
|
|
|
|
initial_timeout: int = 120 # 初始超时改为120秒
|
|
|
|
|
initial_timeout: int = 300 # 初始超时改为300秒
|
|
|
|
|
):
|
|
|
|
|
self._show_progress("🔧", "初始化分析器...", level=0)
|
|
|
|
|
self.client = OpenAI(api_key=api_key, base_url=base_url)
|
|
|
|
@ -140,7 +140,7 @@ def main():
|
|
|
|
|
print(" 🚀 长春云校视频课程智能打标记系统 ".center(50, "✨"))
|
|
|
|
|
print("=" * 50)
|
|
|
|
|
|
|
|
|
|
analyzer = ContentAnalyzer(initial_timeout=120) # 显式设置初始超时
|
|
|
|
|
analyzer = ContentAnalyzer(initial_timeout=300) # 显式设置初始超时
|
|
|
|
|
input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt")
|
|
|
|
|
output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt")
|
|
|
|
|
|
|
|
|
|