Update webui.py
Browse files
webui.py
CHANGED
@@ -47,18 +47,18 @@ def audio_model_inference(files, output_folder, model_path, denoise, margin, chu
|
|
47 |
|
48 |
# Gradio 界面组件
|
49 |
inputs = [
|
50 |
-
gr.
|
51 |
-
gr.
|
52 |
-
gr.
|
53 |
-
gr.
|
54 |
-
gr.
|
55 |
-
gr.
|
56 |
-
gr.
|
57 |
-
gr.
|
58 |
-
gr.
|
59 |
]
|
60 |
|
61 |
-
outputs = [gr.
|
62 |
|
63 |
# 创建界面
|
64 |
iface = gr.Interface(
|
|
|
47 |
|
48 |
# Gradio 界面组件
|
49 |
inputs = [
|
50 |
+
gr.File(label="源音频文件", type='file', file_count='multiple'),
|
51 |
+
gr.Textbox(label="输出文件夹", default="./"),
|
52 |
+
gr.Textbox(label="模型路径", default="./models/MDX_Net_Models/UVR-MDX-NET-Inst_HQ_3.onnx"),
|
53 |
+
gr.Checkbox(label="启用降噪", default=False),
|
54 |
+
gr.Number(label="边距", default=0.1),
|
55 |
+
gr.Number(label="块大小", default=1024),
|
56 |
+
gr.Number(label="FFT大小", default=2048),
|
57 |
+
gr.Number(label="时间维度", default=512),
|
58 |
+
gr.Number(label="频率维度", default=64)
|
59 |
]
|
60 |
|
61 |
+
outputs = [gr.Audio(label="人声"), gr.Audio(label="无人声")]
|
62 |
|
63 |
# 创建界面
|
64 |
iface = gr.Interface(
|