Spaces:
Configuration error
Configuration error
debug: inference logs
Browse files
app.py
CHANGED
@@ -9,6 +9,10 @@ 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":
|
13 |
out_audio = io1(audio)
|
14 |
elif model == "xm_transformer_s2ut_hk-en":
|
@@ -17,7 +21,9 @@ def inference(audio, model):
|
|
17 |
out_audio = io3(audio)
|
18 |
else:
|
19 |
out_audio = io4(audio)
|
20 |
-
|
|
|
|
|
21 |
|
22 |
|
23 |
css = """
|
|
|
9 |
io4 = gr.load("huggingface/facebook/xm_transformer_unity_hk-en")
|
10 |
|
11 |
def inference(audio, model):
|
12 |
+
print(f"[DEBUG] audio: {audio}")
|
13 |
+
print(f"[DEBUG] audio type: {type(audio)}")
|
14 |
+
print(f"[DEBUG] model: {model}")
|
15 |
+
out_audio = None
|
16 |
if model == "xm_transformer_s2ut_en-hk":
|
17 |
out_audio = io1(audio)
|
18 |
elif model == "xm_transformer_s2ut_hk-en":
|
|
|
21 |
out_audio = io3(audio)
|
22 |
else:
|
23 |
out_audio = io4(audio)
|
24 |
+
print(f"[DEBUG] out: {out_audio}")
|
25 |
+
print(f"[DEBUG] out type: {type(out_audio)}")
|
26 |
+
return out_audio
|
27 |
|
28 |
|
29 |
css = """
|