Spaces:
Runtime error
Runtime error
Eren Gölge
commited on
Commit
•
c68294e
1
Parent(s):
65268db
Reorder models
Browse files
app.py
CHANGED
@@ -14,15 +14,12 @@ SPEAKERS = {}
|
|
14 |
manager = ModelManager()
|
15 |
MODEL_NAMES = manager.list_tts_models()
|
16 |
|
17 |
-
# reorder models
|
18 |
-
ddc = MODEL_NAMES[1]
|
19 |
-
MODEL_NAMES[1] = MODEL_NAMES[0]
|
20 |
-
MODEL_NAMES[0] = ddc
|
21 |
-
|
22 |
-
|
23 |
# filter out multi-speaker models
|
24 |
filters = ["vctk", "your_tts"]
|
25 |
MODEL_NAMES = [model_name for model_name in MODEL_NAMES if not any(f in model_name for f in filters)]
|
|
|
|
|
|
|
26 |
print(MODEL_NAMES)
|
27 |
|
28 |
|
|
|
14 |
manager = ModelManager()
|
15 |
MODEL_NAMES = manager.list_tts_models()
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
# filter out multi-speaker models
|
18 |
filters = ["vctk", "your_tts"]
|
19 |
MODEL_NAMES = [model_name for model_name in MODEL_NAMES if not any(f in model_name for f in filters)]
|
20 |
+
|
21 |
+
# reorder models
|
22 |
+
MODEL_NAMES[0], MODEL_NAMES[1], MODEL_NAMES[2]= MODEL_NAMES[1], MODEL_NAMES[2], MODEL_NAMES[0]
|
23 |
print(MODEL_NAMES)
|
24 |
|
25 |
|