Hev832 commited on
Commit
6c9564c
1 Parent(s): 865f3af

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +19 -19
demo.py CHANGED
@@ -233,12 +233,6 @@ with gr.Blocks(title="💻 RVC V2",theme=gr.themes.Soft(primary_hue="blue",neutr
233
  interactive=True,
234
  visible=False
235
  )
236
- but1.click(
237
- preprocess_dataset,
238
- [dataset_folder, training_name, sr2, np7],
239
- [info1],
240
- api_name="train_preprocess",
241
- )
242
  with gr.Column():
243
  f0method8 = gr.Radio(
244
  label="F0 extraction method",
@@ -258,6 +252,25 @@ with gr.Blocks(title="💻 RVC V2",theme=gr.themes.Soft(primary_hue="blue",neutr
258
  inputs=[f0method8],
259
  outputs=[gpus_rmvpe],
260
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  but2.click(
262
  extract_f0_feature,
263
  [
@@ -272,19 +285,6 @@ with gr.Blocks(title="💻 RVC V2",theme=gr.themes.Soft(primary_hue="blue",neutr
272
  [info2],
273
  api_name="train_extract_f0_feature",
274
  )
275
- with gr.Column():
276
- total_epoch11 = gr.Slider(
277
- minimum=2,
278
- maximum=1000,
279
- step=1,
280
- label="Epochs (more epochs may improve quality but takes longer)",
281
- value=150,
282
- interactive=True,
283
- )
284
- with gr.Column():
285
- but1 = gr.Button("1. Process", variant="primary")
286
- with gr.Column():
287
- but2 = gr.Button("2. Extract Features", variant="primary")
288
  with gr.Column():
289
  but4 = gr.Button("3. Train Index", variant="primary")
290
  with gr.Column():
 
233
  interactive=True,
234
  visible=False
235
  )
 
 
 
 
 
 
236
  with gr.Column():
237
  f0method8 = gr.Radio(
238
  label="F0 extraction method",
 
252
  inputs=[f0method8],
253
  outputs=[gpus_rmvpe],
254
  )
255
+ with gr.Column():
256
+ total_epoch11 = gr.Slider(
257
+ minimum=2,
258
+ maximum=1000,
259
+ step=1,
260
+ label="Epochs (more epochs may improve quality but takes longer)",
261
+ value=150,
262
+ interactive=True,
263
+ )
264
+ with gr.Column():
265
+ but1 = gr.Button("1. Process", variant="primary")
266
+ but1.click(
267
+ preprocess_dataset,
268
+ [dataset_folder, training_name, sr2, np7],
269
+ [info1],
270
+ api_name="train_preprocess",
271
+ )
272
+ with gr.Column():
273
+ but2 = gr.Button("2. Extract Features", variant="primary")
274
  but2.click(
275
  extract_f0_feature,
276
  [
 
285
  [info2],
286
  api_name="train_extract_f0_feature",
287
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  with gr.Column():
289
  but4 = gr.Button("3. Train Index", variant="primary")
290
  with gr.Column():