kevinwang676 commited on
Commit
e876293
·
verified ·
1 Parent(s): b398fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -368,7 +368,8 @@ def load_hubert():
368
  hubert_model.eval()
369
  return hubert_model
370
 
371
- load_hubert()
 
372
 
373
  def rvc_models(model_name):
374
  global vc, net_g, index_files, tgt_sr, version
@@ -447,8 +448,6 @@ def infer_gpu(hubert_model, net_g, audio, f0_up_key, index_file, tgt_sr, version
447
  )
448
 
449
  def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
450
- print("0.开始加载Hubert")
451
- load_hubert()
452
  url = url.strip().replace(" ", "")
453
  model_name = model_name.strip().replace(" ", "")
454
  if url.startswith('https://download.openxlab.org.cn/models/'):
 
368
  hubert_model.eval()
369
  return hubert_model
370
 
371
+ print("0.开始加载Hubert")
372
+ hubert_model = load_hubert()
373
 
374
  def rvc_models(model_name):
375
  global vc, net_g, index_files, tgt_sr, version
 
448
  )
449
 
450
  def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
 
 
451
  url = url.strip().replace(" ", "")
452
  model_name = model_name.strip().replace(" ", "")
453
  if url.startswith('https://download.openxlab.org.cn/models/'):