mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-26 16:48:50 +01:00
Add enconding parameter to vocab.json opening to fix errors
This commit is contained in:
parent
4196856c7b
commit
4e887dc350
@ -234,7 +234,7 @@ dir_tokenizer = tokenizer.name_or_path
|
||||
# output in the same directory as the model
|
||||
fname_out = dir_out + "/ggml-model.bin"
|
||||
|
||||
with open(dir_tokenizer + "/vocab.json", "r") as f:
|
||||
with open(dir_tokenizer + "/vocab.json", "r", encoding="utf8") as f:
|
||||
tokens = json.load(f)
|
||||
|
||||
# use 16-bit or 32-bit floats
|
||||
|
Loading…
Reference in New Issue
Block a user