istupakov commited on
Commit
99b94cc
·
verified ·
1 Parent(s): e8ee9a7

Update app.py

Browse files

Set max_length to 20 s

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ demo = gr.Interface(
36
  * `alphacep/vosk-model-small-ru` - Alpha Cephei Vosk 0.52-small-ru ([origin](https://huggingface.co/alphacep/vosk-model-small-ru))
37
  * `whisper-base` - OpenAI Whisper Base exported with onnxruntime ([origin](https://huggingface.co/openai/whisper-base), [onnx](https://huggingface.co/istupakov/whisper-base-onnx))
38
  """,
39
- inputs=[gr.Audio(min_length=1, max_length=10)],
40
  outputs=[gr.Dataframe(headers=["Model", "result"], wrap=True, show_fullscreen_button=True)],
41
  flagging_mode="never",
42
  )
 
36
  * `alphacep/vosk-model-small-ru` - Alpha Cephei Vosk 0.52-small-ru ([origin](https://huggingface.co/alphacep/vosk-model-small-ru))
37
  * `whisper-base` - OpenAI Whisper Base exported with onnxruntime ([origin](https://huggingface.co/openai/whisper-base), [onnx](https://huggingface.co/istupakov/whisper-base-onnx))
38
  """,
39
+ inputs=[gr.Audio(min_length=1, max_length=20)],
40
  outputs=[gr.Dataframe(headers=["Model", "result"], wrap=True, show_fullscreen_button=True)],
41
  flagging_mode="never",
42
  )