lpw commited on
Commit
0e902a4
1 Parent(s): 2ca1e10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,9 +29,10 @@ def inference(audio, model):
29
 
30
  gr.Interface(
31
  inference,
32
- [gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Input"),gr.inputs.Dropdown(choices=["xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022"], default="xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022",type="value", label="model")
33
  ],
34
  gr.outputs.Audio(label="Output"),
35
  article=article,
36
  title=title,
 
37
  description=description).queue().launch()
 
29
 
30
  gr.Interface(
31
  inference,
32
+ [gr.inputs.Audio(source="microphone", type="filepath", label="Input"),gr.inputs.Dropdown(choices=["xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022"], default="xm_transformer_s2ut_800m-es-en-st-asr-bt_h1_2022",type="value", label="Model")
33
  ],
34
  gr.outputs.Audio(label="Output"),
35
  article=article,
36
  title=title,
37
+ examples=examples,
38
  description=description).queue().launch()