hagenw commited on
Commit
154c646
·
1 Parent(s): 0182e84

Require minimum input length for audio

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -248,6 +248,7 @@ with gr.Blocks() as demo:
248
  sources=["upload", "microphone"],
249
  type="filepath",
250
  label="Audio input",
 
251
  )
252
  gr.Markdown("Only the first second of the audio is processed.")
253
  submit_btn = gr.Button(value="Submit")
 
248
  sources=["upload", "microphone"],
249
  type="filepath",
250
  label="Audio input",
251
+ min_length=0.025, # seconds
252
  )
253
  gr.Markdown("Only the first second of the audio is processed.")
254
  submit_btn = gr.Button(value="Submit")