Spaces:
Running
Running
Require minimum input length for audio
Browse files
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")
|