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

德转中的视频总是报“ValueError: All arrays must be of the same length”的错 #232

Open
piagodai opened this issue Nov 4, 2024 · 3 comments

Comments

@piagodai
Copy link

piagodai commented Nov 4, 2024

2024-11-04 12:58:07.299 Uncaught app exception
Traceback (most recent call last):
File "C:\Users\WINDOWS\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "C:\Users\WINDOWS\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec
exec(code, module.dict)
File "D:\AI\VideoLingo\st.py", line 117, in
main()
File "D:\AI\VideoLingo\st.py", line 113, in main
text_processing_section()
File "D:\AI\VideoLingo\st.py", line 30, in text_processing_section
process_text()
File "D:\AI\VideoLingo\st.py", line 55, in process_text
step5_splitforsub.split_for_sub_main()
File "D:\AI\VideoLingo\core\step5_splitforsub.py", line 106, in split_for_sub_main
pd.DataFrame({'Source': src_lines, 'Translation': tr_lines}).to_excel("output/log/translation_results_for_subtitles.xlsx", index=False)
File "C:\Users\WINDOWS\anaconda3\envs\videolingo\lib\site-packages\pandas\core\frame.py", line 778, in init
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "C:\Users\WINDOWS\anaconda3\envs\videolingo\lib\site-packages\pandas\core\internals\construction.py", line 503, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File "C:\Users\WINDOWS\anaconda3\envs\videolingo\lib\site-packages\pandas\core\internals\construction.py", line 114, in arrays_to_mgr
index = _extract_index(arrays)
File "C:\Users\WINDOWS\anaconda3\envs\videolingo\lib\site-packages\pandas\core\internals\construction.py", line 677, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length


试了几段德语视频都是这个问题,英转中没问题

@Huanshere
Copy link
Owner

请询问时附带使用的 llm

@piagodai
Copy link
Author

piagodai commented Nov 4, 2024

好的,按默认文档来的,用的claude-3-5-sonnet-20240620
微信截图_20241104191845

@Huanshere
Copy link
Owner

感谢反馈,我之后进一步测试德语的视频,之前只是简单测试了一下

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

2 participants