Olivier-Truong commited on
Commit
25a1b59
1 Parent(s): d739858

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,7 +6,9 @@ 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", gpu=False)
 
 
10
  #tts.to("cuda") # cuda only
11
 
12
  def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
 
6
  import gradio as gr
7
  from TTS.api import TTS
8
 
9
+ model_names = TTS().list_models()
10
+ print(model_names)
11
+ tts = TTS(model_names[0], gpu=False).to("cpu")
12
  #tts.to("cuda") # cuda only
13
 
14
  def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):