This commit is contained in:
Luke Southam 2022-12-11 02:13:11 +00:00
parent 6709637916
commit 140836fe4a

View File

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