Skip to content

Commit e81b7c5

Browse files
chore(format): run black on dev (#36)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5341289 commit e81b7c5

File tree

1 file changed

+54
-58
lines changed

1 file changed

+54
-58
lines changed

web.py

Lines changed: 54 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,62 +1126,60 @@ def change_f0_method(f0method8):
11261126
)
11271127
)
11281128
with gr.Row():
1129-
with gr.Column():
1130-
dir_wav_input = gr.Textbox(
1131-
label=i18n(
1132-
"Enter the path of the audio folder to be processed"
1133-
),
1134-
placeholder="C:\\Users\\Desktop\\todo-songs",
1135-
)
1136-
wav_inputs = gr.File(
1137-
file_count="multiple",
1138-
label=i18n(
1139-
"Multiple audio files can also be imported. If a folder path exists, this input is ignored."
1140-
),
1141-
)
1142-
with gr.Column():
1143-
model_choose = gr.Dropdown(
1144-
label=i18n("Model"), choices=uvr5_names
1145-
)
1146-
agg = gr.Slider(
1147-
minimum=0,
1148-
maximum=20,
1149-
step=1,
1150-
label="人声提取激进程度",
1151-
value=10,
1152-
interactive=True,
1153-
visible=False, # 先不开放调整
1154-
)
1155-
opt_vocal_root = gr.Textbox(
1156-
label=i18n("Specify the output folder for vocals"),
1157-
value="opt",
1158-
)
1159-
opt_ins_root = gr.Textbox(
1160-
label=i18n("Specify the output folder for accompaniment"),
1161-
value="opt",
1162-
)
1163-
format0 = gr.Radio(
1164-
label=i18n("Export file format"),
1165-
choices=["wav", "flac", "mp3", "m4a"],
1166-
value="flac",
1167-
interactive=True,
1168-
)
1169-
but2 = gr.Button(i18n("Convert"), variant="primary")
1170-
vc_output4 = gr.Textbox(label=i18n("Output information"))
1171-
but2.click(
1172-
uvr,
1173-
[
1174-
model_choose,
1175-
dir_wav_input,
1176-
opt_vocal_root,
1177-
wav_inputs,
1178-
opt_ins_root,
1179-
agg,
1180-
format0,
1181-
],
1182-
[vc_output4],
1183-
api_name="uvr_convert",
1129+
with gr.Column():
1130+
dir_wav_input = gr.Textbox(
1131+
label=i18n(
1132+
"Enter the path of the audio folder to be processed"
1133+
),
1134+
placeholder="C:\\Users\\Desktop\\todo-songs",
1135+
)
1136+
wav_inputs = gr.File(
1137+
file_count="multiple",
1138+
label=i18n(
1139+
"Multiple audio files can also be imported. If a folder path exists, this input is ignored."
1140+
),
1141+
)
1142+
with gr.Column():
1143+
model_choose = gr.Dropdown(label=i18n("Model"), choices=uvr5_names)
1144+
agg = gr.Slider(
1145+
minimum=0,
1146+
maximum=20,
1147+
step=1,
1148+
label="人声提取激进程度",
1149+
value=10,
1150+
interactive=True,
1151+
visible=False, # 先不开放调整
11841152
)
1153+
opt_vocal_root = gr.Textbox(
1154+
label=i18n("Specify the output folder for vocals"),
1155+
value="opt",
1156+
)
1157+
opt_ins_root = gr.Textbox(
1158+
label=i18n("Specify the output folder for accompaniment"),
1159+
value="opt",
1160+
)
1161+
format0 = gr.Radio(
1162+
label=i18n("Export file format"),
1163+
choices=["wav", "flac", "mp3", "m4a"],
1164+
value="flac",
1165+
interactive=True,
1166+
)
1167+
but2 = gr.Button(i18n("Convert"), variant="primary")
1168+
vc_output4 = gr.Textbox(label=i18n("Output information"))
1169+
but2.click(
1170+
uvr,
1171+
[
1172+
model_choose,
1173+
dir_wav_input,
1174+
opt_vocal_root,
1175+
wav_inputs,
1176+
opt_ins_root,
1177+
agg,
1178+
format0,
1179+
],
1180+
[vc_output4],
1181+
api_name="uvr_convert",
1182+
)
11851183
with gr.TabItem(i18n("Train")):
11861184
gr.Markdown(
11871185
value=i18n(
@@ -1567,9 +1565,7 @@ def change_f0_method(f0method8):
15671565
interactive=True,
15681566
)
15691567
name_to_save1 = gr.Textbox(
1570-
label=i18n(
1571-
"Save file name (default: same as the source file)"
1572-
),
1568+
label=i18n("Save file name (default: same as the source file)"),
15731569
value="",
15741570
max_lines=1,
15751571
interactive=True,

0 commit comments

Comments
 (0)