From 24d67414701fea8f95e62f8b272cead5ae83575f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Mon, 17 Feb 2025 07:52:00 +0800 Subject: [PATCH] 'commit' --- AI/T1_Start.py | 10 +++++----- AI/T3_TextSummarize.py | 8 +------- .../T3_TextSummarize.cpython-310.pyc | Bin 5609 -> 5470 bytes 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/AI/T1_Start.py b/AI/T1_Start.py index 795d07b1..b514f982 100644 --- a/AI/T1_Start.py +++ b/AI/T1_Start.py @@ -11,11 +11,11 @@ if __name__ == '__main__': # 3、将转换完成的WAV上传到阿里云 # 4、调用阿里云的语音识别API,将wav文件转成文字 - audio_url = "https://ylt.oss-cn-hangzhou.aliyuncs.com/HuangHai/123.wav" - ShiBie(audio_url, Path("识别结果.txt")) + #audio_url = "https://ylt.oss-cn-hangzhou.aliyuncs.com/HuangHai/123.wav" + #ShiBie(audio_url, Path("识别结果.txt")) # 2.5元一小时,本音频文件45分钟,约2元 # 6、生成总结 - # input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt") - # output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt") - # analyzer_action(input_file, output_file) + input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt") + output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt") + analyzer_action(input_file, output_file) diff --git a/AI/T3_TextSummarize.py b/AI/T3_TextSummarize.py index 0a07134a..fc559a23 100644 --- a/AI/T3_TextSummarize.py +++ b/AI/T3_TextSummarize.py @@ -135,15 +135,12 @@ class ContentAnalyzer: return False, f"文件处理失败: {str(e)}" -def main(): +def analyzer_action(input_file,output_file): print("\n" + "=" * 50) print(" 🚀 长春云校视频课程智能打标记系统 ".center(50, "✨")) print("=" * 50) analyzer = ContentAnalyzer(initial_timeout=300) # 显式设置初始超时 - input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt") - output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt") - success, result = analyzer.analyze_file(input_file, output_file) print("\n" + "=" * 50) @@ -154,6 +151,3 @@ def main(): print(f"❌ 分析失败:{result}") print("=" * 50) - -if __name__ == '__main__': - main() \ No newline at end of file diff --git a/AI/__pycache__/T3_TextSummarize.cpython-310.pyc b/AI/__pycache__/T3_TextSummarize.cpython-310.pyc index 222f5703c0d08c246dc91dbb572f89a306d5a61c..06a448c2aa14cce14e94b170800caca051a1accb 100644 GIT binary patch delta 316 zcmaE?LxYM2%<*D%yDE@X;fs%5TaDPc%qY-VI+s9`SB0kSzj>=K3=77(4s4iw?6 zVVTV^mkA=C!V02O7=YGs`BfQnO>PucpFBaBd-4k5&dKc}4lXQ3NMid4(h?XaiX$;EF{iQ$sN4^v+<)?JZfU)u_{8Lr z%>2AApir?GklKGMm;egTMBxAc delta 391 zcmXv|O-lkn7@l`_v~gV*u~kfhAVM&slN~zNrK{md3l?d&kZg@