lpw commited on
Commit
50f34cd
1 Parent(s): 8d0ad90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,13 +21,13 @@ io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_k
21
 
22
  def inference(audio, model):
23
  if model == "xm_transformer_s2ut_en-hk":
24
- out_audio = io1(text)
25
  elif model == "xm_transformer_s2ut_hk-en":
26
- out_audio = io2(text)
27
  elif model == "xm_transformer_unity_en-hk":
28
- out_audio = io3(text)
29
  else:
30
- out_audio = io4(text)
31
  return out_audio
32
 
33
 
 
21
 
22
  def inference(audio, model):
23
  if model == "xm_transformer_s2ut_en-hk":
24
+ out_audio = io1(audio)
25
  elif model == "xm_transformer_s2ut_hk-en":
26
+ out_audio = io2(audio)
27
  elif model == "xm_transformer_unity_en-hk":
28
+ out_audio = io3(audio)
29
  else:
30
+ out_audio = io4(audio)
31
  return out_audio
32
 
33