Update demo.py
Browse files
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=
|
| 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,
|