Spaces:
Running
on
Zero
Running
on
Zero
Update f5_tts/model/utils.py
Browse files- f5_tts/model/utils.py +1 -1
f5_tts/model/utils.py
CHANGED
@@ -109,7 +109,7 @@ def get_tokenizer(dataset_name, tokenizer: str = "pinyin"):
|
|
109 |
- if use "byte", set to 256 (unicode byte range)
|
110 |
"""
|
111 |
if tokenizer in ["pinyin", "char"]:
|
112 |
-
tokenizer_path = str(f'
|
113 |
|
114 |
with open(tokenizer_path, "r", encoding="utf-8") as f:
|
115 |
vocab_char_map = {}
|
|
|
109 |
- if use "byte", set to 256 (unicode byte range)
|
110 |
"""
|
111 |
if tokenizer in ["pinyin", "char"]:
|
112 |
+
tokenizer_path = str(f'../../vocab.txt')
|
113 |
|
114 |
with open(tokenizer_path, "r", encoding="utf-8") as f:
|
115 |
vocab_char_map = {}
|