Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,11 @@ def inference(text,model):
|
|
23 |
|
24 |
gr.Interface(
|
25 |
inference,
|
26 |
-
|
|
|
|
|
|
|
|
|
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,
|