younver commited on
Commit
0761fa3
1 Parent(s): eea41ba

fix: deprecated method

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
3
  import numpy as np
4
 
5
 
6
- io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_en-hk")
7
- io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en")
8
- io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk")
9
- io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en")
10
 
11
  def inference(audio, model):
12
  if model == "xm_transformer_s2ut_en-hk":
 
3
  import numpy as np
4
 
5
 
6
+ io1 = gr.load("huggingface/facebook/xm_transformer_s2ut_en-hk")
7
+ io2 = gr.load("huggingface/facebook/xm_transformer_s2ut_hk-en")
8
+ io3 = gr.load("huggingface/facebook/xm_transformer_unity_en-hk")
9
+ io4 = gr.load("huggingface/facebook/xm_transformer_unity_hk-en")
10
 
11
  def inference(audio, model):
12
  if model == "xm_transformer_s2ut_en-hk":