diff --git a/whispercpp.pyx b/whispercpp.pyx index fba2eff..0ac26fa 100644 --- a/whispercpp.pyx +++ b/whispercpp.pyx @@ -85,7 +85,7 @@ cdef class Whisper: cdef whisper_full_params params def __init__(self, model=DEFAULT_MODEL, pb=None): - model_fullname = f'ggml-{model}.bin'.encode('utf8') + model_fullname = f'ggml-{model}.bin' download_model(model_fullname) model_path = Path(MODELS_DIR).joinpath(model_fullname) cdef bytes model_b = str(model_path).encode('utf8')