kevinwang676 commited on
Commit
0794ac1
·
verified ·
1 Parent(s): e87845e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def change_instruction(mode_checkbox_group):
72
  def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, prompt_wav_upload, prompt_wav_record, instruct_text, seed):
73
  tts_text = "".join([item1 for item1 in tts_text.strip().split("\n") if item1 != ""]) + ".。"
74
  prompt_text = "".join([item2 for item2 in prompt_text.strip().split("\n") if item2 != ""])
75
- if len(tts_text)>123:
76
  raise Exception('抱歉!你输入的文本超过了100字符,请您删减文本!')
77
  if prompt_wav_upload is not None:
78
  prompt_wav = prompt_wav_upload
 
72
  def generate_audio(tts_text, mode_checkbox_group, sft_dropdown, prompt_text, prompt_wav_upload, prompt_wav_record, instruct_text, seed):
73
  tts_text = "".join([item1 for item1 in tts_text.strip().split("\n") if item1 != ""]) + ".。"
74
  prompt_text = "".join([item2 for item2 in prompt_text.strip().split("\n") if item2 != ""])
75
+ if len(tts_text)>108:
76
  raise Exception('抱歉!你输入的文本超过了100字符,请您删减文本!')
77
  if prompt_wav_upload is not None:
78
  prompt_wav = prompt_wav_upload