github-actions[bot] commited on
Commit
7805d51
·
1 Parent(s): 458a299

Sync with https://github.com/mozilla-ai/speech-to-text-finetune

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -122,7 +122,11 @@ def setup_gradio_demo():
122
 
123
  ### Transcription ###
124
  audio_input = gr.Audio(
125
- sources=["microphone"], type="filepath", label="Record a message"
 
 
 
 
126
  )
127
  transcribe_button = gr.Button("Transcribe")
128
  transcribe_output = gr.Text(label="Output")
 
122
 
123
  ### Transcription ###
124
  audio_input = gr.Audio(
125
+ sources=["upload", "microphone"],
126
+ type="filepath",
127
+ label="Record a message",
128
+ show_download_button=True,
129
+ max_length=30,
130
  )
131
  transcribe_button = gr.Button("Transcribe")
132
  transcribe_output = gr.Text(label="Output")