Singhp08 commited on
Commit
f12cb20
·
verified ·
1 Parent(s): 324d3b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ def load_hubert():
58
  def load_rvc_model():
59
  global net_g, vc_obj, tgt_sr
60
  print("🎤 Loading Elvish RVC Model...")
61
- model_path = "models/elvish.pth"
62
  if not os.path.exists(model_path):
63
  raise FileNotFoundError(f"Model file missing: {model_path}")
64
 
@@ -96,7 +96,7 @@ def convert(text):
96
 
97
  # Step 3: RVC convert (Using Global Models)
98
  times = [0, 0, 0]
99
- index_path = "models/elvish.index"
100
 
101
  audio_opt = vc_obj.pipeline(
102
  hubert_model, net_g, 0, audio, "input.wav", times, 0, "rmvpe",
 
58
  def load_rvc_model():
59
  global net_g, vc_obj, tgt_sr
60
  print("🎤 Loading Elvish RVC Model...")
61
+ model_path = "models/elvish/elvish.pth"
62
  if not os.path.exists(model_path):
63
  raise FileNotFoundError(f"Model file missing: {model_path}")
64
 
 
96
 
97
  # Step 3: RVC convert (Using Global Models)
98
  times = [0, 0, 0]
99
+ index_path = "models/elvish/elvish.index"
100
 
101
  audio_opt = vc_obj.pipeline(
102
  hubert_model, net_g, 0, audio, "input.wav", times, 0, "rmvpe",