ozipoetra commited on
Commit
b2f3ce4
·
1 Parent(s): 04c6849
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,14 +51,14 @@ if force_support is False or spaces is True:
51
  audio_mode = ["Upload audio", "TTS Audio"]
52
  else:
53
  audio_mode = ["Input path", "Upload audio", "TTS Audio"]
54
- f0method_mode = ["pm", "harvest", "rmvpe"]
55
  f0method_info = "PM is fast, Harvest is good but extremely slow, Rvmpe is alternative to harvest (might be better). (Default: PM)"
56
  else:
57
  audio_mode = ["Input path", "Upload audio", "Youtube", "TTS Audio"]
58
  f0method_mode = ["pm", "harvest", "crepe"]
59
  f0method_info = "PM is fast, Harvest is good but extremely slow, Rvmpe is alternative to harvest (might be better), and Crepe effect is good but requires GPU (Default: PM)"
60
 
61
- if os.path.isfile("rmvpe.pt"):
62
  f0method_mode.insert(2, "rmvpe")
63
 
64
  def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
 
51
  audio_mode = ["Upload audio", "TTS Audio"]
52
  else:
53
  audio_mode = ["Input path", "Upload audio", "TTS Audio"]
54
+ f0method_mode = ["pm", "harvest"]
55
  f0method_info = "PM is fast, Harvest is good but extremely slow, Rvmpe is alternative to harvest (might be better). (Default: PM)"
56
  else:
57
  audio_mode = ["Input path", "Upload audio", "Youtube", "TTS Audio"]
58
  f0method_mode = ["pm", "harvest", "crepe"]
59
  f0method_info = "PM is fast, Harvest is good but extremely slow, Rvmpe is alternative to harvest (might be better), and Crepe effect is good but requires GPU (Default: PM)"
60
 
61
+ if os.path.isfile("assets/rmvpe/rmvpe.pt"):
62
  f0method_mode.insert(2, "rmvpe")
63
 
64
  def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):