-
Notifications
You must be signed in to change notification settings - Fork 230
Description
操作系统
Windows 10
项目版本
AAVT0.9.0_Win
Python版本
Python 3.9
错误描述
音频识别最后弹出的提示:TypeError: 'TranscriptionSegment' 对象不可下标
追踪:
File "C:\Users\AAVT0.9.0_Win\env\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 85, in exec_func_with_error_handling
result = func()
^^^^^^
File "C:\Users\AAVT0.9.0_Win\env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 576, in code_to_exec
exec(code, module.dict)
File "C:\Users\AAVT0.9.0_Win\Chenyme-AAVT.py", line 42, in
pg.run()
File "C:\Users\AAVT0.9.0_Win\env\Lib\site-packages\streamlit\navigation\page.py", line 291, in run
exec(code, module.dict)
File "C:\Users\AAVT0.9.0_Win\page\project\audio.py", line 405, in
result = translate(system_prompt, user_prompt, chatgpt_key, chatgpt_url, translate_option, result, wait_time_setting, srt_setting)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AAVT0.9.0_Win\utils\public.py", line 247, in translate
text = segment['text']
~~~~~~~^^^^^^^^
重现步骤
错误截图
其他信息(可选)
No response