zanemotiwala commited on
Commit
7f412be
1 Parent(s): 2d11a0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- examples = ["you-are-acting-so-weird.wav"]
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