Update audio.py

Hardcoded CPU use for faster_whisper to permit use on low CUDA compute capable GPU systems.
This commit is contained in:
James Devine 2025-07-31 11:25:52 +02:00 committed by GitHub
parent b8da4a8cd8
commit aca8c302c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ def set_faster_whisper_model(model: str, auto_update: bool = False):
faster_whisper_kwargs = {
"model_size_or_path": model,
"device": DEVICE_TYPE if DEVICE_TYPE and DEVICE_TYPE == "cuda" else "cpu",
"device": "cpu",
"compute_type": "int8",
"download_root": WHISPER_MODEL_DIR,
"local_files_only": not auto_update,