mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-13 05:58:35 +03:00
feat: allow multiple models to be installed in docker container
This commit is contained in:
8
scripts/download_models.py
Normal file
8
scripts/download_models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import os
|
||||
from whisper import _download, _MODELS # type: ignore
|
||||
|
||||
if __name__ == "__main__":
|
||||
for name in os.environ["WHISPER_MODELS"].split(","):
|
||||
_download(_MODELS[name], "/models/", False)
|
||||
if name != "large":
|
||||
_download(_MODELS[f"{name}.en"], "/models/", False)
|
||||
Reference in New Issue
Block a user