Spaces:
Running
Running
Devin Xie
commited on
Commit
•
64d37cb
1
Parent(s):
c6d1e2e
trying to link model
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ os.environ["COQUI_TOS_AGREED"] = "1"
|
|
9 |
|
10 |
def generate_audio(audio_file, text_input):
|
11 |
# Initialize model
|
12 |
-
model = "tts_models/multilingual/multi-dataset/xtts_v2"
|
13 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
14 |
tts = TTS(model).to(device)
|
15 |
|
|
|
9 |
|
10 |
def generate_audio(audio_file, text_input):
|
11 |
# Initialize model
|
12 |
+
model = "tts_models/multilingual/multi-dataset/xtts_v2" #coqui/XTTS-v2
|
13 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
14 |
tts = TTS(model).to(device)
|
15 |
|