Spaces:
Runtime error
Runtime error
zanemotiwala
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,12 +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 |
|
41 |
demo.launch(share=True)
|
|
|
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 |
transcribe_button.click(transcribe_speech, inputs=mic, outputs=transcription)
|
39 |
|
40 |
demo.launch(share=True)
|