kevinwang676 commited on
Commit
0863906
·
verified ·
1 Parent(s): d56c8b7

Update inference/m4singer/base_svs_infer.py

Browse files
inference/m4singer/base_svs_infer.py CHANGED
@@ -72,7 +72,8 @@ class BaseSVSInfer:
72
  y = self.vocoder(c).view(-1)
73
  # [T]
74
  return y[None]
75
-
 
76
  def preprocess_word_level_input(self, inp):
77
  # Pypinyin can't solve polyphonic words
78
  text_raw = inp['text'].replace('最长', '最常').replace('长睫毛', '常睫毛') \
 
72
  y = self.vocoder(c).view(-1)
73
  # [T]
74
  return y[None]
75
+
76
+ @spaces.GPU(duration=6)
77
  def preprocess_word_level_input(self, inp):
78
  # Pypinyin can't solve polyphonic words
79
  text_raw = inp['text'].replace('最长', '最常').replace('长睫毛', '常睫毛') \