Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def download_assets():
|
|
15 |
|
16 |
def text_to_speech(text):
|
17 |
# prevent too long text
|
18 |
-
if len(text) >
|
19 |
-
text = text[:
|
20 |
text = nat_normalize_text(text)
|
21 |
mel = text2mel(
|
22 |
text,
|
|
|
15 |
|
16 |
def text_to_speech(text):
|
17 |
# prevent too long text
|
18 |
+
if len(text) > 500:
|
19 |
+
text = text[:500]
|
20 |
text = nat_normalize_text(text)
|
21 |
mel = text2mel(
|
22 |
text,
|