Olivier-Truong commited on
Commit
d739858
1 Parent(s): 7c7303d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("cpu") # cuda
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: