Merge branch 'main' into windows_fix

This commit is contained in:
Luke Southam 2023-01-30 16:43:54 +00:00 committed by GitHub
commit 3ca3bc5745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ cdef class Whisper:
cdef whisper_full_params params
def __init__(self, model=DEFAULT_MODEL, pb=None):
model_fullname = f'ggml-{model}.bin'
model_fullname = f'ggml-{model}.bin'.encode('utf8')
download_model(model_fullname)
model_path = Path(MODELS_DIR).joinpath(model_fullname)
cdef bytes model_b = str(model_path).encode('utf8')