Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -111,13 +111,17 @@ def main():
|
|
111 |
with gr.Accordion(label="Voice Previews", open=False):
|
112 |
# Create an audio component to play the samples
|
113 |
preview_audio = gr.Audio(
|
114 |
-
interactive=False,
|
|
|
|
|
|
|
|
|
115 |
)
|
116 |
|
117 |
for voice in VOICE_OPTIONS:
|
118 |
# Create a button for each voice
|
119 |
voice_button = gr.Button(
|
120 |
-
value=f"▶
|
121 |
variant="secondary",
|
122 |
size="sm",
|
123 |
)
|
|
|
111 |
with gr.Accordion(label="Voice Previews", open=False):
|
112 |
# Create an audio component to play the samples
|
113 |
preview_audio = gr.Audio(
|
114 |
+
interactive=False,
|
115 |
+
label="Preview Audio",
|
116 |
+
value=None,
|
117 |
+
visible=False,
|
118 |
+
autoplay=True,
|
119 |
)
|
120 |
|
121 |
for voice in VOICE_OPTIONS:
|
122 |
# Create a button for each voice
|
123 |
voice_button = gr.Button(
|
124 |
+
value=f"▶ {voice.capitalize()}",
|
125 |
variant="secondary",
|
126 |
size="sm",
|
127 |
)
|