robin0307 commited on
Commit
18d2e66
1 Parent(s): ecc6441

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=["microphone", model], outputs=["audio"])
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()