lpw commited on
Commit
f811068
1 Parent(s): e4b4d7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -23,7 +23,11 @@ def inference(text,model):
23
 
24
  gr.Interface(
25
  inference,
26
- [gr.inputs.Audio(label="Input",type="filepath"),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")
 
 
 
 
27
  ],
28
  gr.outputs.Audio(label="Output"),
29
  article=article,
 
23
 
24
  gr.Interface(
25
  inference,
26
+ inputs=[
27
+ gr.Audio(source="microphone", type="filepath", optional=True, label="Speak here..."),
28
+ gr.Audio(source="upload", type="filepath", optional=True, label="Upload your audio here..."),
29
+ ],
30
+ [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")
31
  ],
32
  gr.outputs.Audio(label="Output"),
33
  article=article,