chenjgtea commited on
Commit
c48731e
·
1 Parent(s): b55dfe6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ 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: ")
26
  phonemes, char_embeds = tts_front.chinese_to_phonemes(text)
27
  input_ids = cleaned_text_to_sequence(phonemes)
28
  with torch.no_grad():
 
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)
28
  with torch.no_grad():