Spaces:
Build error
Build error
Aseem Gupta
commited on
Commit
·
c879c20
1
Parent(s):
97fb01c
test7
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import os
|
|
4 |
|
5 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
6 |
|
7 |
-
# Load the model
|
8 |
-
tts = TTS
|
9 |
tts.to("cpu")
|
10 |
|
11 |
# Function to generate voice
|
|
|
4 |
|
5 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
6 |
|
7 |
+
# Load the model
|
8 |
+
tts = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2")
|
9 |
tts.to("cpu")
|
10 |
|
11 |
# Function to generate voice
|