Spaces:
Sleeping
Sleeping
update app
Browse files
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=
|
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=
|
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 |
],
|