From 574ee55de2f5ad860ae610a59130822bee70a318 Mon Sep 17 00:00:00 2001 From: jaimebw Date: Sun, 5 Mar 2023 22:44:14 -0500 Subject: [PATCH] Corrected issues in the pyx file --- whispercpp.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')