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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -368,7 +368,7 @@ def load_hubert():
368
  hubert_model.eval()
369
  return hubert_model
370
 
371
- hubert_model = load_hubert()
372
 
373
  def rvc_models(model_name):
374
  global vc, net_g, index_files, tgt_sr, version
@@ -447,6 +447,8 @@ 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
  url = url.strip().replace(" ", "")
451
  model_name = model_name.strip().replace(" ", "")
452
  if url.startswith('https://download.openxlab.org.cn/models/'):
 
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
  )
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/'):