lpw commited on
Commit
796bd4c
1 Parent(s): 2ffe56d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,9 +10,10 @@ io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_en-hk", api_ke
10
  io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en", api_key=os.environ['api_key'])
11
  io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk", api_key=os.environ['api_key'])
12
  io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_key=os.environ['api_key'])
 
13
 
14
  def call_model(audio, model):
15
- pipe = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
16
  return pipe(audio)
17
 
18
  def inference(audio, model):
 
10
  io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en", api_key=os.environ['api_key'])
11
  io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk", api_key=os.environ['api_key'])
12
  io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_key=os.environ['api_key'])
13
+ pipe = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
14
 
15
  def call_model(audio, model):
16
+ # pipe = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
17
  return pipe(audio)
18
 
19
  def inference(audio, model):