Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,6 @@ def inference(audio, model):
|
|
20 |
return out_audio
|
21 |
|
22 |
model = gr.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_hk-en", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"])
|
23 |
-
|
24 |
-
demo = gr.Interface(fn=inference, inputs=[
|
25 |
demo.launch()
|
|
|
20 |
return out_audio
|
21 |
|
22 |
model = gr.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_hk-en", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"])
|
23 |
+
audio = gr.Audio(source="microphone", type="filepath", label="Input")
|
24 |
+
demo = gr.Interface(fn=inference, inputs=[audio, model], outputs=["audio"])
|
25 |
demo.launch()
|