Spaces:
Runtime error
Runtime error
mrfakename
commited on
Commit
•
6c306f4
1
Parent(s):
b4ad12e
Revert "Update"
Browse filesThis reverts commit b4ad12e0242ba09f715e9a8356fbdb93388b6904.
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) > 300:
|
42 |
+
raise gr.Error("Text must be under 300 characters")
|
43 |
if msexpand:
|
44 |
text = replace_acronyms(text)
|
45 |
v = voice.lower()
|