|
@@ -155,7 +155,7 @@ class GoogleAI(object):
|
|
|
prompts = load_prompts()
|
|
|
analysis_data = {}
|
|
|
for prompt in prompts[:3]:
|
|
|
- print(f"[分析] 正在执行: {prompt['name']}")
|
|
|
+ # print(f"[分析] 正在执行: {prompt['name']}")
|
|
|
try:
|
|
|
result = cls._analyze_content(video, prompt['content'])
|
|
|
# 提取 result 中的 "内容分段" 和 "视频简介"
|
|
@@ -172,11 +172,11 @@ class GoogleAI(object):
|
|
|
"error": str(e),
|
|
|
"error_type": type(e).__name__
|
|
|
}
|
|
|
- print(f"[分析] 所有分析完成, 结果: {analysis_data}")
|
|
|
+ # print(f"[分析] 所有分析完成, 结果: {analysis_data}")
|
|
|
|
|
|
coze_hook = CozeHook()
|
|
|
demand_list = coze_hook.run(analysis_data["视频选题与要点理解"], analysis_data["视频分段与时间点分析"])
|
|
|
- print(f"[分析] 所有分析完成, 结果: {demand_list}")
|
|
|
+ # print(f"[分析] 所有分析完成, 结果: {demand_list}")
|
|
|
|
|
|
genai.delete_file(name=video.name)
|
|
|
os.remove(video_path)
|