Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成字幕时候出错,之前还运行正常的。本人不懂代码,麻烦帮忙给看看是什么问题。 #77

Open
tanianarsha opened this issue Nov 8, 2024 · 0 comments

Comments

@tanianarsha
Copy link

运行到字幕就出错。之前还能正常生成字幕的。

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 575, in _run_script
self._session_state.on_script_will_rerun(
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\safe_session_state.py", line 65, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\session_state.py", line 517, in on_script_will_rerun
self._call_callbacks()
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\session_state.py", line 530, in _call_callbacks
self.new_widget_state.call_callback(wid)
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\venv\Lib\site-packages\streamlit\runtime\state\session_state.py", line 274, in call_callback
callback(*args, **kwargs)
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\pages\02_mix_video.py", line 95, in generate_video_for_mix
main_generate_ai_video_for_mix(video_generator)
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\main.py", line 367, in main_generate_ai_video_for_mix
main_generate_subtitle()
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\main.py", line 282, in main_generate_subtitle
generate_caption()
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\services\captioning\captioning_service.py", line 81, in generate_caption
result_list = tencent_service.process(get_session_option("audio_output_file"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\MoneyPrinterPlus\MoneyPrinterPlus\services\audio\tencent_recognition_service.py", line 81, in process
resp = json.loads(resultData)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2032.0_x64__qbz5n2kfra8p0\Lib\json_init
.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2032.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2032.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant