Update whispercpp.pyx

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

View File

@ -38,7 +38,7 @@ def download_model(model):
print(f'Downloading {model}...')
url = MODELS[model.decode()]
r = requests.get(url, allow_redirects=True)
with open(MODELS_DIR + "/" + model, 'wb') as f:
with open(MODELS_DIR + "/" + model.decode(), 'wb') as f:
f.write(r.content)