Spaces:
Runtime error
Runtime error
csukuangfj
commited on
Commit
•
c145060
1
Parent(s):
4730e63
typo fixes
Browse files
model.py
CHANGED
@@ -340,8 +340,8 @@ def get_pretrained_model(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
340 |
return maltese_models[repo_id](repo_id, speed)
|
341 |
elif repo_id in slovenian_models:
|
342 |
return slovenian_models[repo_id](repo_id, speed)
|
343 |
-
elif repo_id in
|
344 |
-
return
|
345 |
elif repo_id in min_nan_models:
|
346 |
return min_nan_models[repo_id](repo_id, speed)
|
347 |
elif repo_id in thai_models:
|
@@ -628,7 +628,7 @@ slovenian_models = {
|
|
628 |
"csukuangfj/vits-coqui-sl-cv": _get_vits_piper,
|
629 |
}
|
630 |
|
631 |
-
|
632 |
"csukuangfj/vits-coqui-bn-custom_female": _get_vits_piper,
|
633 |
}
|
634 |
|
@@ -651,7 +651,7 @@ language_to_models = {
|
|
651 |
"Cantonese (粤语)": list(cantonese_models.keys()),
|
652 |
"Min-nan (闽南话)": list(min_nan_models.keys()),
|
653 |
"Arabic": list(arabic_models.keys()),
|
654 |
-
"
|
655 |
"Bulgarian": list(bulgarian_models.keys()),
|
656 |
"Catalan": list(catalan_models.keys()),
|
657 |
"Croatian": list(croatian_models.keys()),
|
|
|
340 |
return maltese_models[repo_id](repo_id, speed)
|
341 |
elif repo_id in slovenian_models:
|
342 |
return slovenian_models[repo_id](repo_id, speed)
|
343 |
+
elif repo_id in bengali_models:
|
344 |
+
return bengali_models[repo_id](repo_id, speed)
|
345 |
elif repo_id in min_nan_models:
|
346 |
return min_nan_models[repo_id](repo_id, speed)
|
347 |
elif repo_id in thai_models:
|
|
|
628 |
"csukuangfj/vits-coqui-sl-cv": _get_vits_piper,
|
629 |
}
|
630 |
|
631 |
+
bengali_models = {
|
632 |
"csukuangfj/vits-coqui-bn-custom_female": _get_vits_piper,
|
633 |
}
|
634 |
|
|
|
651 |
"Cantonese (粤语)": list(cantonese_models.keys()),
|
652 |
"Min-nan (闽南话)": list(min_nan_models.keys()),
|
653 |
"Arabic": list(arabic_models.keys()),
|
654 |
+
"Bengali": list(bengali_models.keys()),
|
655 |
"Bulgarian": list(bulgarian_models.keys()),
|
656 |
"Catalan": list(catalan_models.keys()),
|
657 |
"Croatian": list(croatian_models.keys()),
|