lpw commited on
Commit
fb57e6c
1 Parent(s): e5be09a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,10 +7,10 @@ from audio_pipe import SpeechToSpeechPipeline
7
  # io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en", api_key=os.environ['api_key'])
8
  # io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk", api_key=os.environ['api_key'])
9
  # io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_key=os.environ['api_key'])
10
- # pipe1 = SpeechToSpeechPipeline("facebook/xm_transformer_s2ut_en-hk")
11
- # pipe2 = SpeechToSpeechPipeline("facebook/xm_transformer_s2ut_hk-en")
12
- pipe3 = SpeechToSpeechPipeline("facebook/xm_transformer_unity_en-hk")
13
- pipe4 = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
14
 
15
  def inference(audio, model):
16
  if model == "xm_transformer_s2ut_en-hk":
 
7
  # io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en", api_key=os.environ['api_key'])
8
  # io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk", api_key=os.environ['api_key'])
9
  # io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_key=os.environ['api_key'])
10
+ pipe1 = SpeechToSpeechPipeline("facebook/xm_transformer_s2ut_en-hk")
11
+ pipe2 = SpeechToSpeechPipeline("facebook/xm_transformer_s2ut_hk-en")
12
+ # pipe3 = SpeechToSpeechPipeline("facebook/xm_transformer_unity_en-hk")
13
+ # pipe4 = SpeechToSpeechPipeline("facebook/xm_transformer_unity_hk-en")
14
 
15
  def inference(audio, model):
16
  if model == "xm_transformer_s2ut_en-hk":