Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,11 @@ with gr.Blocks() as demo:
|
|
30 |
with gr.Row():
|
31 |
gr.Markdown("### This app allows you to record or upload audio and see its transcription. Powered by the speech_recognition library.")
|
32 |
with gr.Row():
|
33 |
-
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath")
|
34 |
transcribe_button = gr.Button("Transcribe Audio")
|
35 |
with gr.Row():
|
36 |
transcription = gr.Textbox(label="Transcription", lines=3, placeholder="Transcription will appear here...")
|
37 |
-
|
38 |
|
39 |
transcribe_button.click(transcribe_speech, inputs=mic, outputs=transcription)
|
40 |
|
|
|
30 |
with gr.Row():
|
31 |
gr.Markdown("### This app allows you to record or upload audio and see its transcription. Powered by the speech_recognition library.")
|
32 |
with gr.Row():
|
33 |
+
mic = gr.Audio(label="Record from Microphone or Upload File", type="filepath", examples = ["you-are-acting-so-weird.wav"])
|
34 |
transcribe_button = gr.Button("Transcribe Audio")
|
35 |
with gr.Row():
|
36 |
transcription = gr.Textbox(label="Transcription", lines=3, placeholder="Transcription will appear here...")
|
37 |
+
|
38 |
|
39 |
transcribe_button.click(transcribe_speech, inputs=mic, outputs=transcription)
|
40 |
|