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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -219,7 +219,7 @@ pre_fun_hp5 = func(
219
  # Separate vocals
220
 
221
  # GPU needed
222
- @spaces.GPU(duration=200)
223
  def get_vocal_gpu(audio_path, split_model, filename):
224
  if split_model=="UVR-HP2":
225
  pre_fun = pre_fun_hp2
@@ -402,7 +402,7 @@ def rvc_models(model_name):
402
 
403
  singers="您的专属AI歌手阵容:"
404
 
405
- @spaces.GPU(duration=80)
406
  def infer_gpu(net_g, audio, f0_up_key, index_file, tgt_sr, version, f0_file=None):
407
 
408
  from fairseq import checkpoint_utils
@@ -438,7 +438,8 @@ def infer_gpu(net_g, audio, f0_up_key, index_file, tgt_sr, version, f0_file=None
438
  0.33,
439
  f0_file=None,
440
  )
441
-
 
442
  def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
443
  url = url.strip().replace(" ", "")
444
  model_name = model_name.strip().replace(" ", "")
 
219
  # Separate vocals
220
 
221
  # GPU needed
222
+ #@spaces.GPU(duration=200)
223
  def get_vocal_gpu(audio_path, split_model, filename):
224
  if split_model=="UVR-HP2":
225
  pre_fun = pre_fun_hp2
 
402
 
403
  singers="您的专属AI歌手阵容:"
404
 
405
+ #@spaces.GPU(duration=80)
406
  def infer_gpu(net_g, audio, f0_up_key, index_file, tgt_sr, version, f0_file=None):
407
 
408
  from fairseq import checkpoint_utils
 
438
  0.33,
439
  f0_file=None,
440
  )
441
+
442
+ @spaces.GPU(duration=400)
443
  def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
444
  url = url.strip().replace(" ", "")
445
  model_name = model_name.strip().replace(" ", "")