MZhaovo commited on
Commit
a3bf837
1 Parent(s): 8653d8a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -57,6 +57,9 @@ def speak_fn(
57
  language="ZH"
58
  ):
59
  print(text)
 
 
 
60
  audio_list = []
61
  audio_list.extend(
62
  generate_audio(
 
57
  language="ZH"
58
  ):
59
  print(text)
60
+ if len(text) > 100:
61
+ gr.Warning("Too long! No more than 100 characters. 不要超过 100 个字。")
62
+ return gr.update()
63
  audio_list = []
64
  audio_list.extend(
65
  generate_audio(