Spaces:
Running
Running
VoiceCloning-be
commited on
Commit
•
3a9d065
1
Parent(s):
8a1f792
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
17 |
# Init TTS
|
18 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
19 |
|
20 |
-
@spaces.GPU()
|
21 |
def voice_clone(text: str, speaker_wav: str, language: str):
|
22 |
# Run TTS
|
23 |
print("Speaker wav:", speaker_wav)
|
|
|
17 |
# Init TTS
|
18 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
|
19 |
|
20 |
+
@spaces.GPU(duration=180)
|
21 |
def voice_clone(text: str, speaker_wav: str, language: str):
|
22 |
# Run TTS
|
23 |
print("Speaker wav:", speaker_wav)
|