Spaces:
Sleeping
Sleeping
csukuangfj
commited on
Commit
•
c3cbf61
1
Parent(s):
ef8e4f3
small fixes
Browse files- model.py +6 -6
- requirements.txt +1 -1
model.py
CHANGED
@@ -251,12 +251,6 @@ def _get_vits_hf(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
251 |
subfolder=".",
|
252 |
)
|
253 |
|
254 |
-
rule_fsts = get_file(
|
255 |
-
repo_id=repo_id,
|
256 |
-
filename="rule.fst",
|
257 |
-
subfolder=".",
|
258 |
-
)
|
259 |
-
|
260 |
rule_fars = ""
|
261 |
|
262 |
if "vits-cantonese-hf-xiaomaiiwn" not in repo_id:
|
@@ -277,6 +271,12 @@ def _get_vits_hf(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
277 |
filename="rule.far",
|
278 |
subfolder=".",
|
279 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
281 |
tts_config = sherpa_onnx.OfflineTtsConfig(
|
282 |
model=sherpa_onnx.OfflineTtsModelConfig(
|
|
|
251 |
subfolder=".",
|
252 |
)
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
rule_fars = ""
|
255 |
|
256 |
if "vits-cantonese-hf-xiaomaiiwn" not in repo_id:
|
|
|
271 |
filename="rule.far",
|
272 |
subfolder=".",
|
273 |
)
|
274 |
+
else:
|
275 |
+
rule_fsts = get_file(
|
276 |
+
repo_id=repo_id,
|
277 |
+
filename="rule.fst",
|
278 |
+
subfolder=".",
|
279 |
+
)
|
280 |
|
281 |
tts_config = sherpa_onnx.OfflineTtsConfig(
|
282 |
model=sherpa_onnx.OfflineTtsModelConfig(
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
https://huggingface.co/csukuangfj/wheels/resolve/main/sherpa_onnx-1.9.16-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
2 |
#sherpa-onnx
|
3 |
|
4 |
soundfile
|
|
|
1 |
+
https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/sherpa_onnx-1.9.16-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
2 |
#sherpa-onnx
|
3 |
|
4 |
soundfile
|