jonathanagustin commited on
Commit
512ecf5
1 Parent(s): c05f1b3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -125,18 +125,18 @@ def main():
125
  value=VOICE_PREVIEW_FILES[voice],
126
  label=voice.capitalize(),
127
  )
128
-
129
- # Create buttons for each voice
130
- for voice in VOICE_OPTIONS:
131
- voice_button = gr.Button(
132
- value=f"{voice.capitalize()}",
133
- variant="secondary",
134
- size="sm",
135
- )
136
- voice_button.click(
137
- fn=partial(play_voice_sample, voice=voice),
138
- outputs=preview_audio,
139
- )
140
 
141
  # Place the audio player below the buttons
142
  preview_audio.render()
 
125
  value=VOICE_PREVIEW_FILES[voice],
126
  label=voice.capitalize(),
127
  )
128
+ with gr.Group():
129
+ # Create buttons for each voice
130
+ for voice in VOICE_OPTIONS:
131
+ voice_button = gr.Button(
132
+ value=f"{voice.capitalize()}",
133
+ variant="secondary",
134
+ size="sm",
135
+ )
136
+ voice_button.click(
137
+ fn=partial(play_voice_sample, voice=voice),
138
+ outputs=preview_audio,
139
+ )
140
 
141
  # Place the audio player below the buttons
142
  preview_audio.render()