Commit
•
3b30c39
1
Parent(s):
bb4d208
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from TTS.utils.manage import ModelManager
|
|
10 |
model_names = TTS().list_models()
|
11 |
print(model_names.__dict__)
|
12 |
print(model_names.__dir__())
|
13 |
-
model_name = "tts_models/multilingual/multi-dataset/xtts_v1
|
14 |
|
15 |
#m = ModelManager().download_model(model_name)
|
16 |
#print(m)
|
@@ -56,7 +56,7 @@ def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree, req
|
|
56 |
None,
|
57 |
None,
|
58 |
)
|
59 |
-
if len(prompt)>
|
60 |
gr.Warning("Text length limited to 10000 characters for this demo, please try shorter text")
|
61 |
return (
|
62 |
None,
|
|
|
10 |
model_names = TTS().list_models()
|
11 |
print(model_names.__dict__)
|
12 |
print(model_names.__dir__())
|
13 |
+
model_name = "tts_models/multilingual/multi-dataset/xtts_v2" # move in v2, since xtts_v1 is generated keyerror, I guess you can select it with old github's release.
|
14 |
|
15 |
#m = ModelManager().download_model(model_name)
|
16 |
#print(m)
|
|
|
56 |
None,
|
57 |
None,
|
58 |
)
|
59 |
+
if len(prompt)>10000:
|
60 |
gr.Warning("Text length limited to 10000 characters for this demo, please try shorter text")
|
61 |
return (
|
62 |
None,
|