xJuuzouYTx commited on
Commit
86872c6
1 Parent(s): 9bd7a4a

[ADD] coquitts

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -153,13 +153,13 @@ def search_model(name):
153
 
154
  def update_tts_methods_voice(select_value):
155
  if select_value == "Edge-tts":
156
- return gr.update(choices=EDGE_VOICES), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
157
  elif select_value == "Bark-tts":
158
  return gr.update(choices=BARK_VOICES), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
159
  elif select_value == 'ElevenLabs':
160
  return gr.update(choices=ELEVENLABS_VOICES_NAMES), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
161
  elif select_value == 'CoquiTTS':
162
- return gr.Dropdown(visible=False), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
163
 
164
  with gr.Blocks() as app:
165
  gr.HTML("<h1> Simple RVC Inference - by Juuxn 💻 </h1>")
 
153
 
154
  def update_tts_methods_voice(select_value):
155
  if select_value == "Edge-tts":
156
+ return gr.Dropdown.update(choices=EDGE_VOICES, visible=True), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
157
  elif select_value == "Bark-tts":
158
  return gr.update(choices=BARK_VOICES), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
159
  elif select_value == 'ElevenLabs':
160
  return gr.update(choices=ELEVENLABS_VOICES_NAMES), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
161
  elif select_value == 'CoquiTTS':
162
+ return gr.Dropdown(visible=False), gr.Markdown.update(visible=True), gr.Textbox.update(visible=False), gr.Radio.update(visible=False)
163
 
164
  with gr.Blocks() as app:
165
  gr.HTML("<h1> Simple RVC Inference - by Juuxn 💻 </h1>")