Spaces:
Build error
Build error
Olivier-Truong
commited on
Commit
•
7c7303d
1
Parent(s):
2fb935b
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
from TTS.api import TTS
|
8 |
|
9 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
|
10 |
-
tts.to("
|
11 |
|
12 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
13 |
if agree == True:
|
|
|
7 |
from TTS.api import TTS
|
8 |
|
9 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
|
10 |
+
tts.to("cpu") # cuda
|
11 |
|
12 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
13 |
if agree == True:
|