kevinwang676 commited on
Commit
7afdc88
1 Parent(s): f33437b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import os
2
  import glob
3
  import json
@@ -213,7 +215,7 @@ pre_fun_hp5 = func(
213
  )
214
 
215
  # Separate vocals
216
-
217
  def youtube_downloader(
218
  video_identifier,
219
  filename,
@@ -408,6 +410,7 @@ load_hubert()
408
 
409
  singers="您的专属AI歌手阵容:"
410
 
 
411
  def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
412
  url = url.strip().replace(" ", "")
413
  model_name = model_name.strip().replace(" ", "")
 
1
+ import spaces
2
+
3
  import os
4
  import glob
5
  import json
 
215
  )
216
 
217
  # Separate vocals
218
+ @spaces.GPU(duration=120)
219
  def youtube_downloader(
220
  video_identifier,
221
  filename,
 
410
 
411
  singers="您的专属AI歌手阵容:"
412
 
413
+ @spaces.GPU(duration=180)
414
  def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
415
  url = url.strip().replace(" ", "")
416
  model_name = model_name.strip().replace(" ", "")