zanemotiwala commited on
Commit
63cf35c
·
verified ·
1 Parent(s): 7f412be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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", 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
 
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)