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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -366,10 +366,9 @@ def load_hubert():
366
  else:
367
  hubert_model = hubert_model.float()
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,6 +447,7 @@ def infer_gpu(hubert_model, net_g, audio, f0_up_key, index_file, 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/'):
 
366
  else:
367
  hubert_model = hubert_model.float()
368
  hubert_model.eval()
 
369
 
370
  print("0.开始加载Hubert")
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
+ load_hubert()
451
  url = url.strip().replace(" ", "")
452
  model_name = model_name.strip().replace(" ", "")
453
  if url.startswith('https://download.openxlab.org.cn/models/'):