m4jbz commited on
Commit
5ac7b22
1 Parent(s): 8b829a1
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -41,7 +41,8 @@ Si quiere obtener mas información visite los sigientes links:
41
  - <https://github.com/k2-fsa/sherpa-onnx>
42
 
43
  Tambien existen aplicaciones android con esta tecnología en el siguiente enlace:
44
- <https://huggingface.co/csukuangfj/sherpa-onnx-apk/tree/main/tts>
 
45
 
46
  """
47
 
@@ -54,11 +55,6 @@ css = """
54
  .result_item_error {background-color:#ff7070;color:white;align-self:start}
55
  """
56
 
57
- examples = [
58
- ["Min-nan (闽南话)", "csukuangfj/vits-mms-nan", "ài piaǸ chiah ē iaN̂", 0, 1.0],
59
- ["Thai", "csukuangfj/vits-mms-tha", "ฉันรักคุณ", 0, 1.0],
60
- ]
61
-
62
 
63
  def update_model_dropdown(language: str):
64
  if language in language_to_models:
@@ -182,10 +178,10 @@ with demo:
182
  input_button.click(
183
  process,
184
  inputs=[
185
- language_radio,
186
- model_dropdown,
187
  input_text,
188
- input_sid,
189
  input_speed,
190
  ],
191
  outputs=[
 
41
  - <https://github.com/k2-fsa/sherpa-onnx>
42
 
43
  Tambien existen aplicaciones android con esta tecnología en el siguiente enlace:
44
+
45
+ - <https://huggingface.co/csukuangfj/sherpa-onnx-apk/tree/main/tts>
46
 
47
  """
48
 
 
55
  .result_item_error {background-color:#ff7070;color:white;align-self:start}
56
  """
57
 
 
 
 
 
 
58
 
59
  def update_model_dropdown(language: str):
60
  if language in language_to_models:
 
178
  input_button.click(
179
  process,
180
  inputs=[
181
+ language_to_models[language_choices[0]],
182
+ language_to_models[language_choices[0]][0],
183
  input_text,
184
+ 0,
185
  input_speed,
186
  ],
187
  outputs=[