Spaces:
Running
on
Zero
Running
on
Zero
chinese_lexicon
Browse files
diffrhythm/g2p/g2p/mandarin.py
CHANGED
@@ -185,7 +185,8 @@ must_not_er_words = {"女儿", "老儿", "男儿", "少儿", "小儿"}
|
|
185 |
|
186 |
chinese_lexicon_path = hf_hub_download(
|
187 |
repo_id="ASLP-lab/DiffRhythm",
|
188 |
-
filename="chinese_lexicon.txt"
|
|
|
189 |
)
|
190 |
word_pinyin_dict = {}
|
191 |
with open(chinese_lexicon_path, "r", encoding="utf-8") as fread:
|
|
|
185 |
|
186 |
chinese_lexicon_path = hf_hub_download(
|
187 |
repo_id="ASLP-lab/DiffRhythm",
|
188 |
+
filename="diffrhythm/g2p/sources/chinese_lexicon.txt",
|
189 |
+
repo_type="space"
|
190 |
)
|
191 |
word_pinyin_dict = {}
|
192 |
with open(chinese_lexicon_path, "r", encoding="utf-8") as fread:
|