akhaliq HF staff commited on
Commit
1f55113
1 Parent(s): 9a053d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,9 +52,9 @@ def inference(text,model):
52
 
53
  gr.Interface(
54
  inference,
55
- [gr.inputs.Audio(label="Input"),gr.inputs.Dropdown(choices=["xm_transformer_600m-es_en-multi_domain","xm_transformer_600m-ru_en-multi_domain","xm_transformer_600m-en_ru-multi_domain","xm_transformer_600m-en_es-multi_domain","xm_transformer_600m-en_zh-multi_domain","xm_transformer_600m-fr_en-multi_domain","xm_transformer_600m-en_ar-multi_domain","facebook/xm_transformer_600m-en_tr-multi_domain"], type="value", default="xm_transformer_600m-es_en-multi_domain", label="model")
56
  ],
57
- gr.outputs.Audio(label="Output"),
58
  examples=examples,
59
  article=article,
60
  title=title,
 
52
 
53
  gr.Interface(
54
  inference,
55
+ [gr.inputs.File(label="Input"),gr.inputs.Dropdown(choices=["xm_transformer_600m-es_en-multi_domain","xm_transformer_600m-ru_en-multi_domain","xm_transformer_600m-en_ru-multi_domain","xm_transformer_600m-en_es-multi_domain","xm_transformer_600m-en_zh-multi_domain","xm_transformer_600m-fr_en-multi_domain","xm_transformer_600m-en_ar-multi_domain","facebook/xm_transformer_600m-en_tr-multi_domain"], type="value", default="xm_transformer_600m-es_en-multi_domain", label="model")
56
  ],
57
+ gr.outputs.File(label="Output"),
58
  examples=examples,
59
  article=article,
60
  title=title,