Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ torch.load = patched_torch_load
|
|
| 20 |
|
| 21 |
# Initialize XTTS model
|
| 22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 23 |
-
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2"
|
| 24 |
|
| 25 |
def extract_speaker_embedding(audio_path):
|
| 26 |
try:
|
|
|
|
| 20 |
|
| 21 |
# Initialize XTTS model
|
| 22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 23 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
| 24 |
|
| 25 |
def extract_speaker_embedding(audio_path):
|
| 26 |
try:
|