Spaces:
Runtime error
Runtime error
Olivier-Truong
commited on
Commit
•
6234602
1
Parent(s):
f27bc08
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ from TTS.api import TTS
|
|
8 |
|
9 |
model_names = TTS().list_models()
|
10 |
m = model_names[1]
|
11 |
-
for model in model_names:
|
12 |
-
if model.find("/fr/") != -1:
|
13 |
-
m = model
|
14 |
-
break
|
15 |
print(model_names)
|
16 |
tts = TTS(m, gpu=False).to("cpu")
|
17 |
#tts.to("cuda") # cuda only
|
|
|
8 |
|
9 |
model_names = TTS().list_models()
|
10 |
m = model_names[1]
|
11 |
+
#for model in model_names:
|
12 |
+
# if model.find("/fr/") != -1:
|
13 |
+
# m = model
|
14 |
+
# break
|
15 |
print(model_names)
|
16 |
tts = TTS(m, gpu=False).to("cpu")
|
17 |
#tts.to("cuda") # cuda only
|