Spaces:
Sleeping
Sleeping
csukuangfj
commited on
Commit
•
a759369
1
Parent(s):
d2e8a11
fix an error
Browse files
model.py
CHANGED
@@ -330,7 +330,7 @@ def get_pretrained_model(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
330 |
elif repo_id in lithuanian_models:
|
331 |
return lithuanian_models[repo_id](repo_id, speed)
|
332 |
elif repo_id in latvian_models:
|
333 |
-
return
|
334 |
elif repo_id in maltese_models:
|
335 |
return maltese_models[repo_id](repo_id, speed)
|
336 |
elif repo_id in slovenian_models:
|
@@ -483,7 +483,7 @@ finnish_models = {
|
|
483 |
}
|
484 |
|
485 |
hungarian_models = {
|
486 |
-
"csukuangfj/vits-coqui-hu-css10": _get_vits_piper,
|
487 |
"csukuangfj/vits-piper-hu_HU-anna-medium": _get_vits_piper,
|
488 |
"csukuangfj/vits-piper-hu_HU-berta-medium": _get_vits_piper,
|
489 |
"csukuangfj/vits-piper-hu_HU-imre-medium": _get_vits_piper,
|
|
|
330 |
elif repo_id in lithuanian_models:
|
331 |
return lithuanian_models[repo_id](repo_id, speed)
|
332 |
elif repo_id in latvian_models:
|
333 |
+
return latvian_models[repo_id](repo_id, speed)
|
334 |
elif repo_id in maltese_models:
|
335 |
return maltese_models[repo_id](repo_id, speed)
|
336 |
elif repo_id in slovenian_models:
|
|
|
483 |
}
|
484 |
|
485 |
hungarian_models = {
|
486 |
+
# "csukuangfj/vits-coqui-hu-css10": _get_vits_piper,
|
487 |
"csukuangfj/vits-piper-hu_HU-anna-medium": _get_vits_piper,
|
488 |
"csukuangfj/vits-piper-hu_HU-berta-medium": _get_vits_piper,
|
489 |
"csukuangfj/vits-piper-hu_HU-imre-medium": _get_vits_piper,
|