VideoLingo icon indicating copy to clipboard operation
VideoLingo copied to clipboard

上传视频开始运行时报错了这个怎么解决

Open jeffchen57 opened this issue 1 year ago • 1 comments

LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input. Traceback: File "C:\App\videolingo\VideoLingo\installer_files\env\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling result = func() File "C:\App\videolingo\VideoLingo\installer_files\env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec exec(code, module.dict) File "C:\App\videolingo\VideoLingo\st.py", line 123, in main() File "C:\App\videolingo\VideoLingo\st.py", line 119, in main text_processing_section() File "C:\App\videolingo\VideoLingo\st.py", line 33, in text_processing_section process_text() File "C:\App\videolingo\VideoLingo\st.py", line 47, in process_text step2_whisperX.transcribe() File "C:\App\videolingo\VideoLingo\core\step2_whisperX.py", line 160, in transcribe result = transcribe_audio(whisper_audio, start, end) File "C:\App\videolingo\VideoLingo\core\step2_whisperX.py", line 89, in transcribe_audio model = whisperx.load_model(model_name, device, compute_type=compute_type, language=whisper_language, vad_options=vad_options, asr_options=asr_options, download_root=MODEL_DIR) File "c:\app\videolingo\videolingo\third_party\whisperx\whisperx\asr.py", line 288, in load_model model = model or WhisperModel(whisper_arch, File "C:\App\videolingo\VideoLingo\installer_files\env\lib\site-packages\faster_whisper\transcribe.py", line 127, in init model_path = download_model( File "C:\App\videolingo\VideoLingo\installer_files\env\lib\site-packages\faster_whisper\utils.py", line 119, in download_model return huggingface_hub.snapshot_download(repo_id, **kwargs) File "C:\App\videolingo\VideoLingo\installer_files\env\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "C:\App\videolingo\VideoLingo\installer_files\env\lib\site-packages\huggingface_hub_snapshot_download.py", line 219, in snapshot_download raise LocalEntryNotFoundError(

jeffchen57 avatar Jan 01 '25 03:01 jeffchen57

出现“local_files_only=False”问题的时候,我是可以ping通hg官网的,用curl测试,如果强制使用ipv4是正常的,使用IPV6就会出现这种情况,请问作者这有办法代码上规避吗? @Huanshere

比如我测试 git clone -4 https://huggingface.co/openai/whisper-large-v3 就可以正常下载

sslzhou948 avatar May 27 '25 13:05 sslzhou948