Update whispercpp.pyx

This commit is contained in:
Luke Southam 2022-12-16 01:06:51 +00:00 committed by GitHub
parent 4f1f2d1c0a
commit c5f51d5b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ cdef class Whisper:
def __init__(self, model=DEFAULT_MODEL, pb=None):
model_fullname = f'model_ggml_{model}.bin'.encode('utf8')
download_model(model_fullname)
cdef bytes model_b = MODELS_DIR / model_fullname
cdef bytes model_b = MODELS_DIR.encode('utf8') + b'/' + model_fullname
self.ctx = whisper_init(model_b)
self.params = default_params()
whisper_print_system_info()