Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,39 +51,45 @@ css = """
|
|
| 51 |
|
| 52 |
examples = [
|
| 53 |
[
|
| 54 |
-
"
|
| 55 |
-
"csukuangfj/
|
| 56 |
-
"
|
| 57 |
0,
|
| 58 |
1.0,
|
| 59 |
],
|
| 60 |
[
|
| 61 |
-
"
|
| 62 |
-
"csukuangfj/vits-
|
| 63 |
-
"
|
| 64 |
0,
|
| 65 |
1.0,
|
| 66 |
],
|
| 67 |
[
|
| 68 |
-
"
|
| 69 |
-
"csukuangfj/vits-
|
| 70 |
-
'
|
| 71 |
0,
|
| 72 |
1.0,
|
| 73 |
],
|
| 74 |
-
["Min-nan (闽南话)", "csukuangfj/vits-mms-nan", "ài piaǸ chiah ē iaN̂", 0, 1.0],
|
| 75 |
-
["Thai", "csukuangfj/vits-mms-tha", "ฉันรักคุณ", 0, 1.0],
|
| 76 |
[
|
| 77 |
-
"
|
| 78 |
-
"csukuangfj/
|
| 79 |
-
"
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
1.0,
|
| 82 |
],
|
| 83 |
]
|
| 84 |
|
| 85 |
|
| 86 |
|
|
|
|
| 87 |
def update_model_dropdown(language: str):
|
| 88 |
if language in language_to_models:
|
| 89 |
choices = language_to_models[language]
|
|
|
|
| 51 |
|
| 52 |
examples = [
|
| 53 |
[
|
| 54 |
+
"English",
|
| 55 |
+
"csukuangfj/vits-piper-en_US-ryan-medium|1 speaker",
|
| 56 |
+
"Welcome to the next-generation Kaldi Text-to-Speech demo, running entirely on CPU.",
|
| 57 |
0,
|
| 58 |
1.0,
|
| 59 |
],
|
| 60 |
[
|
| 61 |
+
"English",
|
| 62 |
+
"csukuangfj/vits-piper-en_GB-southern_english_male-medium|8 speakers",
|
| 63 |
+
"Machine learning and artificial intelligence are revolutionizing the tech industry.",
|
| 64 |
0,
|
| 65 |
1.0,
|
| 66 |
],
|
| 67 |
[
|
| 68 |
+
"English",
|
| 69 |
+
"csukuangfj/vits-coqui-en-vctk|109 speakers",
|
| 70 |
+
"The quick brown fox jumps over the lazy dog. It's a common pangram in English.",
|
| 71 |
0,
|
| 72 |
1.0,
|
| 73 |
],
|
|
|
|
|
|
|
| 74 |
[
|
| 75 |
+
"English",
|
| 76 |
+
"csukuangfj/vits-piper-en_US-amy-medium|1 speaker",
|
| 77 |
+
"On July 4th, 2025, we will celebrate with fireworks and music across the nation.",
|
| 78 |
+
0,
|
| 79 |
+
1.0,
|
| 80 |
+
],
|
| 81 |
+
[
|
| 82 |
+
"English",
|
| 83 |
+
"csukuangfj/vits-piper-en_GB-alan-medium|1 speaker",
|
| 84 |
+
"Please call 911 for emergencies. Your appointment is confirmed for September 1st.",
|
| 85 |
+
0,
|
| 86 |
1.0,
|
| 87 |
],
|
| 88 |
]
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
+
|
| 93 |
def update_model_dropdown(language: str):
|
| 94 |
if language in language_to_models:
|
| 95 |
choices = language_to_models[language]
|