Spaces:
Runtime error
Runtime error
mrfakename
commited on
Commit
•
b4ad12e
1
Parent(s):
2a0fc5f
Update
Browse files
app.py
CHANGED
@@ -38,8 +38,8 @@ def synthesize(text, voice, multispeakersteps, msexpand):
|
|
38 |
if text.strip() == "":
|
39 |
raise gr.Error("You must enter some text")
|
40 |
# if len(global_phonemizer.phonemize([text])) > 300:
|
41 |
-
if len(text) >
|
42 |
-
raise gr.Error("Text must be under
|
43 |
if msexpand:
|
44 |
text = replace_acronyms(text)
|
45 |
v = voice.lower()
|
|
|
38 |
if text.strip() == "":
|
39 |
raise gr.Error("You must enter some text")
|
40 |
# if len(global_phonemizer.phonemize([text])) > 300:
|
41 |
+
if len(text) > 400:
|
42 |
+
raise gr.Error("Text must be under 400 characters")
|
43 |
if msexpand:
|
44 |
text = replace_acronyms(text)
|
45 |
v = voice.lower()
|