Expose function available_models (#475)

* Expose function available_models

* Add test case
This commit is contained in:
Guillaume Klein
2023-09-14 17:17:01 +02:00
committed by GitHub
parent a49097e655
commit 0048844f54
3 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,12 @@
import os
from faster_whisper import download_model
from faster_whisper import available_models, download_model
def test_available_models():
models = available_models()
assert isinstance(models, list)
assert "tiny" in models
def test_download_model(tmpdir):