robin0307 commited on
Commit
241a580
1 Parent(s): e65188c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -22,7 +22,11 @@ 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"], examples=[['audio1.wav', 'xm_transformer_unity_hk-en'],
26
- ['audio2.wav', 'xm_transformer_unity_hk-en']])
 
 
 
 
27
 
28
  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=[
26
+ ['audio1.wav', 'xm_transformer_unity_hk-en'],
27
+ ['audio2.wav', 'xm_transformer_unity_hk-en'],
28
+ ['en_audio1.wav', 'xm_transformer_unity_en-hk'],
29
+ ['en_audio2.wav', 'xm_transformer_unity_en-hk']
30
+ ])
31
 
32
  demo.launch()