Spaces:
Configuration error
Configuration error
fix: deprecated method
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
|
|
3 |
import numpy as np
|
4 |
|
5 |
|
6 |
-
io1 = gr.
|
7 |
-
io2 = gr.
|
8 |
-
io3 = gr.
|
9 |
-
io4 = gr.
|
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":
|