Huanshere / Huanshere/VideoLingo
我再翻译一个视频,但是一直翻译不过
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.5k
- Forks
- 2k
- Avg merge
- 7h 41m
- Merged PRs (30d)
- 12
Description
2025-06-03 21:08:16.938 Uncaught app exception
Traceback (most recent call last):
File "D:\Software\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "D:\Software\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec
exec(code, module.dict)
File "D:\Software\VideoLingo\VideoLingo\st.py", line 124, in
main()
File "D:\Software\VideoLingo\VideoLingo\st.py", line 120, in main
text_processing_section()
File "D:\Software\VideoLingo\VideoLingo\st.py", line 33, in text_processing_section
process_text()
File "D:\Software\VideoLingo\VideoLingo\st.py", line 55, in process_text
_4_2_translate.translate_all()
File "D:\Software\VideoLingo\VideoLingo\core\utils\decorator.py", line 41, in wrapper
return func(*args, **kwargs)
File "D:\Software\VideoLingo\VideoLingo\core_4_2_translate.py", line 102, in translate_all
df_time = align_timestamp(df_text, df_translate, subtitle_output_configs, output_dir=None, for_display=False)
File "D:\Software\VideoLingo\VideoLingo\core_6_gen_sub.py", line 113, in align_timestamp
time_stamp_list = get_sentence_timestamps(df_text, df_translate)
File "D:\Software\VideoLingo\VideoLingo\core_6_gen_sub.py", line 82, in get_sentence_timestamps
end_word_idx = position_to_word_idx[current_pos + sentence_len - 1]
KeyError: -1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with core/_6_gen_sub.py, especially get_sentence_timestamps around line 82, and trace the call from core/_4_2_translate.py:102 through align_timestamp. Reproduce the translation failure shown in the traceback and inspect why the computed lookup uses position -1. Done means this translation path completes without the KeyError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, streamlit
- Domain
- localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100