Spaces:
Sleeping
Sleeping
csukuangfj
commited on
Commit
•
70eba44
1
Parent(s):
1ae3349
small fixes
Browse files
model.py
CHANGED
@@ -321,8 +321,6 @@ def get_pretrained_model(repo_id: str, speed: float) -> sherpa_onnx.OfflineTts:
|
|
321 |
return vietnamese_models[repo_id](repo_id, speed)
|
322 |
elif repo_id in bulgarian_models:
|
323 |
return bulgarian_models[repo_id](repo_id, speed)
|
324 |
-
elif repo_id in danish_models:
|
325 |
-
return danish_models[repo_id](repo_id, speed)
|
326 |
elif repo_id in estonian_models:
|
327 |
return estonian_models[repo_id](repo_id, speed)
|
328 |
elif repo_id in irish_models:
|
@@ -470,6 +468,7 @@ czech_models = {
|
|
470 |
}
|
471 |
|
472 |
danish_models = {
|
|
|
473 |
"csukuangfj/vits-piper-da_DK-talesyntese-medium": _get_vits_piper,
|
474 |
}
|
475 |
|
@@ -588,10 +587,6 @@ bulgarian_models = {
|
|
588 |
"csukuangfj/vits-coqui-bg-cv": _get_vits_piper,
|
589 |
}
|
590 |
|
591 |
-
danish_models = {
|
592 |
-
"csukuangfj/vits-coqui-da-cv": _get_vits_piper,
|
593 |
-
}
|
594 |
-
|
595 |
estonian_models = {
|
596 |
"csukuangfj/vits-coqui-et-cv": _get_vits_piper,
|
597 |
}
|
@@ -631,12 +626,11 @@ language_to_models = {
|
|
631 |
"Cantonese (粤语)": list(cantonese_models.keys()),
|
632 |
"Arabic": list(arabic_models.keys()),
|
633 |
"Bangla": list(bangla_models.keys()),
|
634 |
-
"Bulgarian": list(
|
635 |
"Catalan": list(catalan_models.keys()),
|
636 |
"Croatian": list(croatian_models.keys()),
|
637 |
"Czech": list(czech_models.keys()),
|
638 |
"Danish": list(danish_models.keys()),
|
639 |
-
"Danish": list(danish_models.keys()),
|
640 |
"Dutch": list(dutch_models.keys()),
|
641 |
"Estonian": list(estonian_models.keys()),
|
642 |
"Finnish": list(finnish_models.keys()),
|
|
|
321 |
return vietnamese_models[repo_id](repo_id, speed)
|
322 |
elif repo_id in bulgarian_models:
|
323 |
return bulgarian_models[repo_id](repo_id, speed)
|
|
|
|
|
324 |
elif repo_id in estonian_models:
|
325 |
return estonian_models[repo_id](repo_id, speed)
|
326 |
elif repo_id in irish_models:
|
|
|
468 |
}
|
469 |
|
470 |
danish_models = {
|
471 |
+
"csukuangfj/vits-coqui-da-cv": _get_vits_piper,
|
472 |
"csukuangfj/vits-piper-da_DK-talesyntese-medium": _get_vits_piper,
|
473 |
}
|
474 |
|
|
|
587 |
"csukuangfj/vits-coqui-bg-cv": _get_vits_piper,
|
588 |
}
|
589 |
|
|
|
|
|
|
|
|
|
590 |
estonian_models = {
|
591 |
"csukuangfj/vits-coqui-et-cv": _get_vits_piper,
|
592 |
}
|
|
|
626 |
"Cantonese (粤语)": list(cantonese_models.keys()),
|
627 |
"Arabic": list(arabic_models.keys()),
|
628 |
"Bangla": list(bangla_models.keys()),
|
629 |
+
"Bulgarian": list(bulgarian_models.keys()),
|
630 |
"Catalan": list(catalan_models.keys()),
|
631 |
"Croatian": list(croatian_models.keys()),
|
632 |
"Czech": list(czech_models.keys()),
|
633 |
"Danish": list(danish_models.keys()),
|
|
|
634 |
"Dutch": list(dutch_models.keys()),
|
635 |
"Estonian": list(estonian_models.keys()),
|
636 |
"Finnish": list(finnish_models.keys()),
|