[Python] How to specific WhisperX Models stored location?

Discussão em 'Python' iniciado por Stack, Julho 25, 2025.

  1. Stack

    Stack Membro Participativo

    I expected all model files to be downloaded into the /app/.cache folder using the following code, but they were not. Why is this happening? How can I specify the storage location for the models?

    import os
    import whisperx
    os.environ["HF_HOME"] = "/app/.cache"
    # Store cached models inside /app/.cache
    model = whisperx.load_model("large-v3", device=device, compute_type="int8")

    Continue reading...

Compartilhe esta Página