Update app.py
Browse files
app.py
CHANGED
@@ -24,11 +24,10 @@ def inference(text,model):
|
|
24 |
gr.Interface(
|
25 |
inference,
|
26 |
inputs=[
|
27 |
-
gr.Audio(source="microphone", type="filepath", optional=True, label="
|
28 |
-
gr.Audio(source="upload", type="filepath", optional=True, label="
|
|
|
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,
|
34 |
title=title,
|
|
|
24 |
gr.Interface(
|
25 |
inference,
|
26 |
inputs=[
|
27 |
+
gr.Audio(source="microphone", type="filepath", optional=True, label="Input"),
|
28 |
+
gr.Audio(source="upload", type="filepath", optional=True, label="Input"),
|
29 |
+
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"),
|
30 |
],
|
|
|
|
|
31 |
gr.outputs.Audio(label="Output"),
|
32 |
article=article,
|
33 |
title=title,
|