kevinwang676 commited on
Commit
bbe2b8c
·
verified ·
1 Parent(s): 99d52e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -28
app.py CHANGED
@@ -349,30 +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
- '''
353
- global hubert_model
354
- @spaces.GPU(duration=10)
355
- def load_hubert():
356
- #global hubert_model
357
- from fairseq import checkpoint_utils
358
- models, _, _ = checkpoint_utils.load_model_ensemble_and_task(
359
- ["hubert_base.pt"],
360
- suffix="",
361
- )
362
- hubert_model = models[0]
363
- hubert_model = hubert_model.to(config.device)
364
- if config.is_half:
365
- hubert_model = hubert_model.half()
366
- else:
367
- hubert_model = hubert_model.float()
368
- hubert_model.eval()
369
- print(hubert_model)
370
- #return hubert_model
371
-
372
- #hubert_model = load_hubert()
373
- load_hubert()
374
- print(hubert_model)
375
- '''
376
 
377
  def rvc_models(model_name):
378
  global vc, net_g, index_files, tgt_sr, version
@@ -424,10 +400,6 @@ def rvc_models(model_name):
424
  categories.append(["Models", "", models])
425
  return vc, net_g, index_files, tgt_sr, version
426
 
427
- @spaces.GPU()
428
- from fairseq import checkpoint_utils
429
-
430
-
431
  singers="您的专属AI歌手阵容:"
432
 
433
  @spaces.GPU(duration=80)
 
349
  print(result.stdout.decode())
350
  return output_path
351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
 
353
  def rvc_models(model_name):
354
  global vc, net_g, index_files, tgt_sr, version
 
400
  categories.append(["Models", "", models])
401
  return vc, net_g, index_files, tgt_sr, version
402
 
 
 
 
 
403
  singers="您的专属AI歌手阵容:"
404
 
405
  @spaces.GPU(duration=80)