xJuuzouYTx commited on
Commit
20c5679
1 Parent(s): 1714f95

[FIX] models not visibles

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -155,11 +155,11 @@ 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=False), gr.Textbox.update(visible=False), gr.Radio.update(visible=True)
163
 
164
  with gr.Blocks() as app:
165
  gr.HTML("<h1> Simple RVC Inference - by Juuxn 💻 </h1>")
 
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.Dropdown.update(choices=BARK_VOICES, visible=True), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
159
  elif select_value == 'ElevenLabs':
160
+ return gr.Dropdown.update(choices=ELEVENLABS_VOICES_NAMES, visible=True), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
161
  elif select_value == 'CoquiTTS':
162
+ return gr.Dropdown.update(visible=False), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False), gr.Radio.update(visible=True)
163
 
164
  with gr.Blocks() as app:
165
  gr.HTML("<h1> Simple RVC Inference - by Juuxn 💻 </h1>")