pyf98 commited on
Commit
27f4fff
1 Parent(s): d6c1b6b

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -144,10 +144,10 @@ def predict(audio_path, src_lang: str, task: str, beam_size, long_form: bool, te
144
  demo = gr.Interface(
145
  predict,
146
  inputs=[
147
- gr.Audio(type="filepath", label="Speech Input", max_length=300, sources=["microphone", "upload"]),
148
  gr.Dropdown(choices=list(lang2code), value="English", label="Language", info="Language of input speech. Select 'Unknown' (1st option) to detect it automatically."),
149
  gr.Dropdown(choices=list(task2code), value="Automatic Speech Recognition", label="Task", info="Task to perform on input speech."),
150
- gr.Slider(minimum=1, maximum=20, step=1, value=5, label="Beam Size", info="Beam size used in beam search."),
151
  gr.Checkbox(label="Long Form (Experimental)", info="Whether to perform long-form decoding (experimental feature)."),
152
  gr.Text(label="Text Prompt (Optional)", info="Generation will be conditioned on this prompt if provided"),
153
  ],
 
144
  demo = gr.Interface(
145
  predict,
146
  inputs=[
147
+ gr.Audio(type="filepath", label="Speech Input", max_length=150, sources=["microphone", "upload"]),
148
  gr.Dropdown(choices=list(lang2code), value="English", label="Language", info="Language of input speech. Select 'Unknown' (1st option) to detect it automatically."),
149
  gr.Dropdown(choices=list(task2code), value="Automatic Speech Recognition", label="Task", info="Task to perform on input speech."),
150
+ gr.Slider(minimum=1, maximum=5, step=1, value=1, label="Beam Size", info="Beam size used in beam search."),
151
  gr.Checkbox(label="Long Form (Experimental)", info="Whether to perform long-form decoding (experimental feature)."),
152
  gr.Text(label="Text Prompt (Optional)", info="Generation will be conditioned on this prompt if provided"),
153
  ],