megaaziib commited on
Commit
1119b1c
1 Parent(s): e6b56b1
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -34,12 +34,16 @@ f0method_mode = []
34
  f0method_info = ""
35
  if limitation is True:
36
  audio_mode = ["Upload audio", "TTS Audio"]
37
- f0method_mode = ["pm", "crepe", "harvest" , "rmvpe"]
38
  f0method_info = "PM is fast, rmvpe is middle, Crepe or harvest is good but it was extremely slow (Default: PM)"
39
  else:
40
  audio_mode = ["Upload audio", "Youtube", "TTS Audio"]
41
- f0method_mode = ["pm", "crepe", "harvest", "rmvpe"]
42
  f0method_info = "PM is fast, rmvpe is middle. Crepe or harvest is good but it was extremely slow (Default: PM))"
 
 
 
 
43
  def create_vc_fn(model_title, tgt_sr, net_g, vc, if_f0, version, file_index):
44
  def vc_fn(
45
  vc_audio_mode,
 
34
  f0method_info = ""
35
  if limitation is True:
36
  audio_mode = ["Upload audio", "TTS Audio"]
37
+ f0method_mode = ["pm", "crepe", "harvest"]
38
  f0method_info = "PM is fast, rmvpe is middle, Crepe or harvest is good but it was extremely slow (Default: PM)"
39
  else:
40
  audio_mode = ["Upload audio", "Youtube", "TTS Audio"]
41
+ f0method_mode = ["pm", "crepe", "harvest"]
42
  f0method_info = "PM is fast, rmvpe is middle. Crepe or harvest is good but it was extremely slow (Default: PM))"
43
+
44
+ if os.path.isfile("rmvpe.pt"):
45
+ f0method_mode.insert(2, "rmvpe")
46
+
47
  def create_vc_fn(model_title, tgt_sr, net_g, vc, if_f0, version, file_index):
48
  def vc_fn(
49
  vc_audio_mode,