Skip to content

翻译并生成字幕 HTTPError: HTTP Error 301: Moved Permanently #523

@Chapoly1305

Description

@Chapoly1305
Traceback:
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
File "/usr/local/lib/python3.10/dist-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
    exec(code, module.__dict__)
File "/app/st.py", line 124, in <module>
    main()
File "/app/st.py", line 120, in main
    text_processing_section()
File "/app/st.py", line 36, in text_processing_section
    process_text()
File "/app/st.py", line 51, in process_text
    step2_whisper.transcribe()
File "/app/core/step2_whisper.py", line 23, in transcribe
    ts(video_file)
File "/app/core/all_whisper_methods/whisperX.py", line 131, in transcribe
    result = transcribe_audio(audio_file, start, end)
File "/app/core/all_whisper_methods/whisperX.py", line 53, in transcribe_audio
    model = whisperx.load_model(model_name, device, compute_type=compute_type, download_root=whisperx_model_dir)
File "/app/third_party/whisperX/whisperx/asr.py", line 347, in load_model
    vad_model = load_vad_model(torch.device(device), use_auth_token=None, **default_vad_options)
File "/app/third_party/whisperX/whisperx/vad.py", line 29, in load_vad_model
    with urllib.request.urlopen(VAD_SEGMENTATION_URL) as source, open(model_fp, "wb") as output:
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions