Spaces:
Running
on
Zero
Running
on
Zero
inject audio samples to ui
Browse files
app.py
CHANGED
@@ -291,6 +291,17 @@ with demo:
|
|
291 |
|
292 |
audio_input = gr.Audio(sources=["upload", "microphone"], type="filepath", label="Audio Input")
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
with gr.Row():
|
295 |
with gr.Column():
|
296 |
gr.Markdown("### Whisper ASR")
|
|
|
291 |
|
292 |
audio_input = gr.Audio(sources=["upload", "microphone"], type="filepath", label="Audio Input")
|
293 |
|
294 |
+
|
295 |
+
# ─── Add example audio files here ───
|
296 |
+
examples = gr.Examples(
|
297 |
+
examples=[
|
298 |
+
["interview.mp3"],
|
299 |
+
["news.mp3"]
|
300 |
+
],
|
301 |
+
inputs=[audio_input],
|
302 |
+
label="Example Audio Files"
|
303 |
+
)
|
304 |
+
|
305 |
with gr.Row():
|
306 |
with gr.Column():
|
307 |
gr.Markdown("### Whisper ASR")
|