Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
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(
|