chenjgtea commited on
Commit
56d43d6
·
1 Parent(s): c48731e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def create_calback(net_g: SynthesizerTrn, tts_front: VITS_PinYin):
21
  max_len = 150
22
  if text_len > max_len:
23
  print(" Text is too long \n")
24
- return "Error: Text is too long,max len:"+max_len, None
25
  print(" start convert text: "+text)
26
  phonemes, char_embeds = tts_front.chinese_to_phonemes(text)
27
  input_ids = cleaned_text_to_sequence(phonemes)
 
21
  max_len = 150
22
  if text_len > max_len:
23
  print(" Text is too long \n")
24
+ return "Error: Text is too long,max len:"+str(max_len), None
25
  print(" start convert text: "+text)
26
  phonemes, char_embeds = tts_front.chinese_to_phonemes(text)
27
  input_ids = cleaned_text_to_sequence(phonemes)