Netflix-level subtitle cutting, translation, alignment, and even dubbing - one-click fully automated AI video subtitle team | Netflix级字幕切割、翻译、对齐、甚至加上配音,一键全自动视频搬运AI字幕组
TypeError: list indices must be integers or slices, not str
Traceback:
File "C:\Users\xxx\AppData\Local\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\xxx\AppData\Local\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec
exec(code, module.dict)
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 118, in
main()
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 114, in main
text_processing_section()
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 30, in text_processing_section
process_text()
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 48, in process_text
step3_2_splitbymeaning.split_sentences_by_meaning()
File "C:\Users\xxx\Desktop\VideoLingo\core\step3_2_splitbymeaning.py", line 119, in split_sentences_by_meaning
sentences = parallel_split_sentences(sentences, max_length=load_key("max_split_length"), max_workers=load_key("max_workers"), nlp=nlp, retry_attempt=retry_attempt)
File "C:\Users\xxx\Desktop\VideoLingo\core\step3_2_splitbymeaning.py", line 101, in parallel_split_sentences
split_result = future.result()
File "C:\Users\xxx\AppData\Local\anaconda3\envs\videolingo\lib\concurrent\futures_base.py", line 445, in result
return self.get_result()
File "C:\Users\xxx\AppData\Local\anaconda3\envs\videolingo\lib\concurrent\futures_base.py", line 390, in get_result
raise self._exception
File "C:\Users\xxx\AppData\Local\anaconda3\envs\videolingo\lib\concurrent\futures\thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\xxx\Desktop\VideoLingo\core\step3_2_splitbymeaning.py", line 61, in split_sentence
best_split = responsedata[f"split{response_data['best']}"]
TypeError: list indices must be integers or slices, not str Traceback: File "C:\Users\xxx\AppData\Local\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\xxx\AppData\Local\anaconda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec exec(code, module.dict) File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 118, in
main()
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 114, in main
text_processing_section()
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 30, in text_processing_section
process_text()
File "C:\Users\xxx\Desktop\VideoLingo\st.py", line 48, in process_text
step3_2_splitbymeaning.split_sentences_by_meaning()
File "C:\Users\xxx\Desktop\VideoLingo\core\step3_2_splitbymeaning.py", line 119, in split_sentences_by_meaning
sentences = parallel_split_sentences(sentences, max_length=load_key("max_split_length"), max_workers=load_key("max_workers"), nlp=nlp, retry_attempt=retry_attempt)
File "C:\Users\xxx\Desktop\VideoLingo\core\step3_2_splitbymeaning.py", line 101, in parallel_split_sentences
split_result = future.result()
File "C:\Users\xxx\AppData\Local\anaconda3\envs\videolingo\lib\concurrent\futures_base.py", line 445, in result
return self.get_result()
File "C:\Users\xxx\AppData\Local\anaconda3\envs\videolingo\lib\concurrent\futures_base.py", line 390, in get_result
raise self._exception
File "C:\Users\xxx\AppData\Local\anaconda3\envs\videolingo\lib\concurrent\futures\thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\xxx\Desktop\VideoLingo\core\step3_2_splitbymeaning.py", line 61, in split_sentence
best_split = responsedata[f"split{response_data['best']}"]