Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,12 @@ input_text = gr.Textbox(
|
|
32 |
elem_id="input_text"
|
33 |
)
|
34 |
|
35 |
-
|
|
|
|
|
36 |
input_voice = gr.Dropdown(
|
37 |
-
|
38 |
-
|
39 |
label="Voice",
|
40 |
elem_id="input_voice"
|
41 |
)
|
|
|
32 |
elem_id="input_text"
|
33 |
)
|
34 |
|
35 |
+
desired_voices = ["Anita", "Rachael", "Michael", "Antonio"]
|
36 |
+
filtered_voices = [voice.name for voice in all_voices if voice.name in desired_voices]
|
37 |
+
|
38 |
input_voice = gr.Dropdown(
|
39 |
+
choices=filtered_voices,
|
40 |
+
default="Antonio",
|
41 |
label="Voice",
|
42 |
elem_id="input_voice"
|
43 |
)
|