robin0307 commited on
Commit
9465c88
1 Parent(s): 85b14b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,13 +10,14 @@ io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en")
10
 
11
  def inference(audio, model):
12
  print(audio)
 
13
  if model == "xm_transformer_s2ut_en-hk":
14
  out_audio = io1(audio)
15
  elif model == "xm_transformer_s2ut_hk-en":
16
  out_audio = io2(audio)
17
  elif model == "xm_transformer_unity_en-hk":
18
  out_audio = io3(audio)
19
- else:
20
  out_audio = io4(audio)
21
  return out_audio
22
 
 
10
 
11
  def inference(audio, model):
12
  print(audio)
13
+ out_audio = None
14
  if model == "xm_transformer_s2ut_en-hk":
15
  out_audio = io1(audio)
16
  elif model == "xm_transformer_s2ut_hk-en":
17
  out_audio = io2(audio)
18
  elif model == "xm_transformer_unity_en-hk":
19
  out_audio = io3(audio)
20
+ elif model == "xm_transformer_unity_hk-en":
21
  out_audio = io4(audio)
22
  return out_audio
23