robin0307 commited on
Commit
a34f94d
1 Parent(s): af1ee44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,5 +22,7 @@ def inference(audio, model):
22
 
23
  model = gr.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_hk-en", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"])
24
  audio = gr.Audio(source="microphone", type="filepath", label="Input")
25
- demo = gr.Interface(fn=inference, inputs=[audio, model], outputs=["audio"])
 
 
26
  demo.launch()
 
22
 
23
  model = gr.Dropdown(choices=["xm_transformer_unity_en-hk", "xm_transformer_unity_hk-en", "xm_transformer_s2ut_en-hk", "xm_transformer_s2ut_hk-en"])
24
  audio = gr.Audio(source="microphone", type="filepath", label="Input")
25
+ demo = gr.Interface(fn=inference, inputs=[audio, model], outputs=["audio"], examples=[['audio1.wav', 'xm_transformer_unity_hk-en'],
26
+ ['audio2.wav', 'xm_transformer_unity_hk-en']])
27
+
28
  demo.launch()