NeoPy commited on
Commit
f879545
·
verified ·
1 Parent(s): 0c1b2eb

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +1 -1
demo.py CHANGED
@@ -14,7 +14,7 @@ with gr.Blocks(title="🔊", theme=gr.themes.Base(primary_hue="blue", neutral_hu
14
  with gr.Tabs():
15
  with gr.Tab("Inference"):
16
  with gr.Row():
17
- voice_model = gr.Dropdown(label="Model Voice", choices=[], value="", interactive=True)
18
  refresh_button = gr.Button("Refresh", variant="primary")
19
  spk_item = gr.Slider(
20
  minimum=0,
 
14
  with gr.Tabs():
15
  with gr.Tab("Inference"):
16
  with gr.Row():
17
+ voice_model = gr.Dropdown(label="Model Voice", choices=sorted(names), value=lambda:sorted(names)[0] if len(sorted(names)) > 0 else '', interactive=True)
18
  refresh_button = gr.Button("Refresh", variant="primary")
19
  spk_item = gr.Slider(
20
  minimum=0,