Simonlob commited on
Commit
ffb4d46
·
verified ·
1 Parent(s): 7d1f0cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -18
app.py CHANGED
@@ -21,9 +21,9 @@ from matcha.utils.utils import get_user_data_dir, plot_tensor
21
  LOCATION = Path(get_user_data_dir())
22
 
23
  args = Namespace(
24
- cpu=False,
25
- model="matcha_vctk",
26
- vocoder="hifigan_univ_v1",
27
  spk=0,
28
  )
29
 
@@ -77,7 +77,7 @@ def load_model_ui(model_type, textbox):
77
  model, vocoder, denoiser = load_model(model_name, vocoder_name)
78
  CURRENTLY_LOADED_MODEL = model_name
79
 
80
- if model_name == "matcha_ljspeech":
81
  spk_slider = gr.update(visible=False, value=-1)
82
  single_speaker_examples = gr.update(visible=True)
83
  multi_speaker_examples = gr.update(visible=False)
@@ -236,29 +236,18 @@ def main():
236
  examples = gr.Examples( # pylint: disable=unused-variable
237
  examples=[
238
  [
239
- "We propose Matcha-TTS, a new approach to non-autoregressive neural TTS, that uses conditional flow matching (similar to rectified flows) to speed up O D E-based speech synthesis.",
240
  50,
241
  0.677,
242
  0.95,
243
  ],
244
  [
245
- "The Secret Service believed that it was very doubtful that any President would ride regularly in a vehicle with a fixed top, even though transparent.",
246
  2,
247
  0.677,
248
  0.95,
249
  ],
250
- [
251
- "The Secret Service believed that it was very doubtful that any President would ride regularly in a vehicle with a fixed top, even though transparent.",
252
- 4,
253
- 0.677,
254
- 0.95,
255
- ],
256
- [
257
- "The Secret Service believed that it was very doubtful that any President would ride regularly in a vehicle with a fixed top, even though transparent.",
258
- 10,
259
- 0.677,
260
- 0.95,
261
- ],
262
 
263
  ],
264
  fn=ljspeech_example_cacher,
 
21
  LOCATION = Path(get_user_data_dir())
22
 
23
  args = Namespace(
24
+ cpu=True,
25
+ model="akyl_ai",
26
+ vocoder="hifigan_T2_v1",
27
  spk=0,
28
  )
29
 
 
77
  model, vocoder, denoiser = load_model(model_name, vocoder_name)
78
  CURRENTLY_LOADED_MODEL = model_name
79
 
80
+ if model_name == "akyl_ai":
81
  spk_slider = gr.update(visible=False, value=-1)
82
  single_speaker_examples = gr.update(visible=True)
83
  multi_speaker_examples = gr.update(visible=False)
 
236
  examples = gr.Examples( # pylint: disable=unused-variable
237
  examples=[
238
  [
239
+ "Баарыңарга салам, менин атым Акылай. Мен бардыгын бул жерде Инновация борборунда көргөнүмө абдан кубанычтамын.",
240
  50,
241
  0.677,
242
  0.95,
243
  ],
244
  [
245
+ "Мага колдоо көрсөтүп, мени тандагандарга ыраазымын. Айыл үчүн иштейбиз, жол курабыз, асфальт төшөйбүз”, деген ал.",
246
  2,
247
  0.677,
248
  0.95,
249
  ],
250
+
 
 
 
 
 
 
 
 
 
 
 
251
 
252
  ],
253
  fn=ljspeech_example_cacher,