Spaces:
Build error
Build error
Olivier-Truong
commited on
Commit
•
d739858
1
Parent(s):
7c7303d
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ os.environ["COQUI_TOS_AGREED"] = "1"
|
|
6 |
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:
|
|
|
6 |
import gradio as gr
|
7 |
from TTS.api import TTS
|
8 |
|
9 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=False)
|
10 |
+
#tts.to("cuda") # cuda only
|
11 |
|
12 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
13 |
if agree == True:
|