kevinwang676 commited on
Commit
fc7a25b
·
verified ·
1 Parent(s): a413afe

Update GPT_SoVITS/app.py

Browse files
Files changed (1) hide show
  1. GPT_SoVITS/app.py +2 -0
GPT_SoVITS/app.py CHANGED
@@ -37,6 +37,7 @@ from text.cleaner import clean_text
37
  from my_utils import load_audio
38
  from tools.i18n.i18n import I18nAuto
39
 
 
40
 
41
  def get_pretrain_model_path(env_name, log_file, def_path):
42
  """ 获取预训练模型路径
@@ -415,6 +416,7 @@ def get_cleaned_text_final(text,language):
415
 
416
 
417
  @torch.no_grad()
 
418
  def vc_main(wav_path, text, language, prompt_wav, noise_scale=0.5):
419
  """ Voice Conversion
420
  wav_path: 待变声的源音频
 
37
  from my_utils import load_audio
38
  from tools.i18n.i18n import I18nAuto
39
 
40
+ import spaces
41
 
42
  def get_pretrain_model_path(env_name, log_file, def_path):
43
  """ 获取预训练模型路径
 
416
 
417
 
418
  @torch.no_grad()
419
+ @spaces.GPU(duration=30)
420
  def vc_main(wav_path, text, language, prompt_wav, noise_scale=0.5):
421
  """ Voice Conversion
422
  wav_path: 待变声的源音频