antfraia commited on
Commit
9f50f7e
·
1 Parent(s): 562ed19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -32,10 +32,12 @@ input_text = gr.Textbox(
32
  elem_id="input_text"
33
  )
34
 
35
- all_voices = voices()
 
 
36
  input_voice = gr.Dropdown(
37
- [voice.name for voice in all_voices],
38
- value="Arnold",
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
  )