Chenyme / Chenyme-AAVT

这是一个全自动(音频)视频翻译项目。利用Whisper识别声音,AI大模型翻译字幕,最后合并字幕视频,生成翻译后的视频。
MIT License
736 stars 73 forks source link

报错故障--TypeError: 'NoneType' object is not subscriptableTypeError: 'NoneType' object is not subscriptable #39

Open OrdinaryJoys opened 4 days ago

OrdinaryJoys commented 4 days ago

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8501 Network URL: http://192.168.1.117:8501

Faster Whisper 本地模型加载模式

2024-07-05 11:53:10.179 Uncaught app exception Traceback (most recent call last): File "C:\Users\G1763\Downloads\AAVT_0.8.4_full (1)\AAVT_0.8.4_full\env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script exec(code, module.dict) File "C:\Users\G1763\Downloads\AAVT_0.8.4_full (1)\AAVT_0.8.4_full\Chenyme-AAVT.py", line 42, in media() File "C:\Users\G1763\Downloads\AAVT_0.8.4_full (1)\AAVT_0.8.4_full\project\media.py", line 701, in media srt_content = generate_srt_from_result(result) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\G1763\Downloads\AAVT_0.8.4_full (1)\AAVT_0.8.4_full\project\utils\utils2.py", line 525, in generate_srt_from_result segments = result['segments']


TypeError: 'NoneType' object is not subscriptable
![Snipaste_2024-07-05_11-55-12](https://github.com/Chenyme/Chenyme-AAVT/assets/90075145/5502286a-a84f-49a8-a1d8-d3a28ee2fdea)