Kit-Lemonfoot commited on
Commit
7042f64
1 Parent(s): 591ac2d

Added Idol (because funny), added Oga and Kurokami, updated Reine

Browse files
Files changed (1) hide show
  1. app.py +49 -45
app.py CHANGED
@@ -461,49 +461,53 @@ if __name__ == '__main__':
461
  value="rmvpe",
462
  interactive=True
463
  )
464
- index_rate1 = gr.Slider(
465
- minimum=0,
466
- maximum=1,
467
- label="Retrieval feature ratio",
468
- info="Accent control. Too high will usually sound too robotic. (Default: 0.4)",
469
- value=0.4,
470
- interactive=True,
471
- )
472
- filter_radius0 = gr.Slider(
473
- minimum=0,
474
- maximum=7,
475
- label="Apply Median Filtering",
476
- info="The value represents the filter radius and can reduce breathiness.",
477
- value=1,
478
- step=1,
479
- interactive=True,
480
- )
481
- resample_sr0 = gr.Slider(
482
- minimum=0,
483
- maximum=48000,
484
- label="Resample the output audio",
485
- info="Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling.",
486
- value=0,
487
- step=1,
488
- interactive=True,
489
- )
490
- rms_mix_rate0 = gr.Slider(
491
- minimum=0,
492
- maximum=1,
493
- label="Volume Envelope",
494
- info="Use the volume envelope of the input to replace or mix with the volume envelope of the output. The closer the ratio is to 1, the more the output envelope is used",
495
- value=1,
496
- interactive=True,
497
- )
498
- protect0 = gr.Slider(
499
- minimum=0,
500
- maximum=0.5,
501
- label="Voice Protection",
502
- info="Protect voiceless consonants and breath sounds to prevent artifacts such as tearing in electronic music. Set to 0.5 to disable. Decrease the value to increase protection, but it may reduce indexing accuracy",
503
- value=0.23,
504
- step=0.01,
505
- interactive=True,
506
- )
 
 
 
 
507
  with gr.Column():
508
  vc_log = gr.Textbox(label="Output Information", interactive=False)
509
  vc_output = gr.Audio(label="Output Audio", interactive=False)
@@ -583,9 +587,9 @@ if __name__ == '__main__':
583
  "#### <center>Original devs:\n"
584
  "<center>the RVC Project, lj1995, zomehwh, sysf\n\n"
585
  "#### <center>Model creators:\n"
586
- "<center>dacoolkid44, Hijack, Maki Ligon, megaaziib, KitLemonfoot, yeey5, Sui, MahdeenSky, Itaxhix, Acato, Kyuubical, Listra92, IshimaIshimsky, ZomballTH, Jotape91, RigidSpinner, RandomAssBettel, Mimizukari, Oida, Shu-Kun, Nhat Minh, Ardha27, Legitdark, TempoHawk, 0x3e9, Kaiaya, Skeetawn, Sonphantrung, Pianissimo, RavenCutie21, Gloomwastragic, Sunesu, Aimbo, Act8113, Blyxeen\n"
587
  )
588
  if limitation is True:
589
  app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=config.colab)
590
  else:
591
- app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=True)
 
461
  value="rmvpe",
462
  interactive=True
463
  )
464
+ if model_index:
465
+ index_rate1 = gr.Slider(
466
+ minimum=0,
467
+ maximum=1,
468
+ label="Retrieval feature ratio",
469
+ info="Accent control. Too high will usually sound too robotic. (Default: 0.4)",
470
+ value=0.4,
471
+ interactive=True,
472
+ )
473
+ else:
474
+ index_rate1 = gr.Number(value=0.4, interactive=False, visible=False)
475
+ with gr.Accordion("Advanced Options", open=False):
476
+ filter_radius0 = gr.Slider(
477
+ minimum=0,
478
+ maximum=7,
479
+ label="Apply Median Filtering",
480
+ info="The value represents the filter radius and can reduce breathiness.",
481
+ value=1,
482
+ step=1,
483
+ interactive=True,
484
+ )
485
+ resample_sr0 = gr.Slider(
486
+ minimum=0,
487
+ maximum=48000,
488
+ label="Resample the output audio",
489
+ info="Resample the output audio in post-processing to the final sample rate. Set to 0 for no resampling.",
490
+ value=0,
491
+ step=1,
492
+ interactive=True,
493
+ )
494
+ rms_mix_rate0 = gr.Slider(
495
+ minimum=0,
496
+ maximum=1,
497
+ label="Volume Envelope",
498
+ info="Use the volume envelope of the input to replace or mix with the volume envelope of the output. The closer the ratio is to 1, the more the output envelope is used",
499
+ value=1,
500
+ interactive=True,
501
+ )
502
+ protect0 = gr.Slider(
503
+ minimum=0,
504
+ maximum=0.5,
505
+ label="Voice Protection",
506
+ info="Protect voiceless consonants and breath sounds to prevent artifacts such as tearing in electronic music. Set to 0.5 to disable. Decrease the value to increase protection, but it may reduce indexing accuracy",
507
+ value=0.23,
508
+ step=0.01,
509
+ interactive=True,
510
+ )
511
  with gr.Column():
512
  vc_log = gr.Textbox(label="Output Information", interactive=False)
513
  vc_output = gr.Audio(label="Output Audio", interactive=False)
 
587
  "#### <center>Original devs:\n"
588
  "<center>the RVC Project, lj1995, zomehwh, sysf\n\n"
589
  "#### <center>Model creators:\n"
590
+ "<center>dacoolkid44, Hijack, Maki Ligon, megaaziib, KitLemonfoot, yeey5, Sui, MahdeenSky, Itaxhix, Acato, Kyuubical, Listra92, IshimaIshimsky, ZomballTH, Jotape91, RigidSpinner, RandomAssBettel, Mimizukari, Oida, Shu-Kun, Nhat Minh, Ardha27, Legitdark, TempoHawk, 0x3e9, Kaiaya, Skeetawn, Sonphantrung, Pianissimo, RavenCutie21, HinaBl, Brazurl, PetroOne, Rubinlord, Gloomwastragic, Sunesu, Aimbo, Act8113, Blyxeen\n"
591
  )
592
  if limitation is True:
593
  app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=config.colab)
594
  else:
595
+ app.queue(concurrency_count=1, max_size=20, api_open=config.api).launch(share=False)