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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -349,7 +349,6 @@ def combine_vocal_and_inst(model_name, song_name, song_id, split_model, cover_so
349
  print(result.stdout.decode())
350
  return output_path
351
 
352
- global hubert_model
353
 
354
  @spaces.GPU()
355
  def load_hubert():
@@ -367,8 +366,9 @@ def load_hubert():
367
  else:
368
  hubert_model = hubert_model.float()
369
  hubert_model.eval()
 
370
 
371
- load_hubert()
372
 
373
  def rvc_models(model_name):
374
  global vc, net_g, index_files, tgt_sr, version
 
349
  print(result.stdout.decode())
350
  return output_path
351
 
 
352
 
353
  @spaces.GPU()
354
  def load_hubert():
 
366
  else:
367
  hubert_model = hubert_model.float()
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