@@ -1126,62 +1126,60 @@ def change_f0_method(f0method8):
1126
1126
)
1127
1127
)
1128
1128
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 , # 先不开放调整
1184
1152
)
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
+ )
1185
1183
with gr .TabItem (i18n ("Train" )):
1186
1184
gr .Markdown (
1187
1185
value = i18n (
@@ -1567,9 +1565,7 @@ def change_f0_method(f0method8):
1567
1565
interactive = True ,
1568
1566
)
1569
1567
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)" ),
1573
1569
value = "" ,
1574
1570
max_lines = 1 ,
1575
1571
interactive = True ,
0 commit comments