Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,13 +21,13 @@ io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_k
|
|
21 |
|
22 |
def inference(audio, model):
|
23 |
if model == "xm_transformer_s2ut_en-hk":
|
24 |
-
out_audio = io1(
|
25 |
elif model == "xm_transformer_s2ut_hk-en":
|
26 |
-
out_audio = io2(
|
27 |
elif model == "xm_transformer_unity_en-hk":
|
28 |
-
out_audio = io3(
|
29 |
else:
|
30 |
-
out_audio = io4(
|
31 |
return out_audio
|
32 |
|
33 |
|
|
|
21 |
|
22 |
def inference(audio, model):
|
23 |
if model == "xm_transformer_s2ut_en-hk":
|
24 |
+
out_audio = io1(audio)
|
25 |
elif model == "xm_transformer_s2ut_hk-en":
|
26 |
+
out_audio = io2(audio)
|
27 |
elif model == "xm_transformer_unity_en-hk":
|
28 |
+
out_audio = io3(audio)
|
29 |
else:
|
30 |
+
out_audio = io4(audio)
|
31 |
return out_audio
|
32 |
|
33 |
|