Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,14 @@ io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en")
|
|
10 |
|
11 |
def inference(audio, model):
|
12 |
print(audio)
|
|
|
13 |
if model == "xm_transformer_s2ut_en-hk":
|
14 |
out_audio = io1(audio)
|
15 |
elif model == "xm_transformer_s2ut_hk-en":
|
16 |
out_audio = io2(audio)
|
17 |
elif model == "xm_transformer_unity_en-hk":
|
18 |
out_audio = io3(audio)
|
19 |
-
|
20 |
out_audio = io4(audio)
|
21 |
return out_audio
|
22 |
|
|
|
10 |
|
11 |
def inference(audio, model):
|
12 |
print(audio)
|
13 |
+
out_audio = None
|
14 |
if model == "xm_transformer_s2ut_en-hk":
|
15 |
out_audio = io1(audio)
|
16 |
elif model == "xm_transformer_s2ut_hk-en":
|
17 |
out_audio = io2(audio)
|
18 |
elif model == "xm_transformer_unity_en-hk":
|
19 |
out_audio = io3(audio)
|
20 |
+
elif model == "xm_transformer_unity_hk-en":
|
21 |
out_audio = io4(audio)
|
22 |
return out_audio
|
23 |
|