julian78w commited on
Commit
7431872
1 Parent(s): d98d0fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -19,6 +19,11 @@ MODEL_NAMES = manager.list_tts_models()
19
  filters = ["vctk", "your_tts", "ek1"]
20
  MODEL_NAMES = [model_name for model_name in MODEL_NAMES if not any(f in model_name for f in filters)]
21
 
 
 
 
 
 
22
  # reorder models
23
  print(MODEL_NAMES)
24
 
 
19
  filters = ["vctk", "your_tts", "ek1"]
20
  MODEL_NAMES = [model_name for model_name in MODEL_NAMES if not any(f in model_name for f in filters)]
21
 
22
+ EN = [el for el in MODEL_NAMES if "/en/" in el]
23
+ OTHER = [el for el in MODEL_NAMES if "/en/" not in el]
24
+ EN[0], EN[5] = EN[5], EN[0]
25
+ MODEL_NAMES = EN + OTHER
26
+
27
  # reorder models
28
  print(MODEL_NAMES)
29