Spaces:
Running
Running
mizukidesuu
commited on
Commit
·
c6f0565
1
Parent(s):
56896bf
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def create_tts_fn(net_g_ms, speaker_id):
|
|
40 |
text = text.replace('\n', ' ').replace('\r', '').replace(" ", "")
|
41 |
if limitation:
|
42 |
text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
|
43 |
-
max_len =
|
44 |
if is_symbol:
|
45 |
max_len *= 3
|
46 |
if text_len > max_len:
|
|
|
40 |
text = text.replace('\n', ' ').replace('\r', '').replace(" ", "")
|
41 |
if limitation:
|
42 |
text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
|
43 |
+
max_len = 1000
|
44 |
if is_symbol:
|
45 |
max_len *= 3
|
46 |
if text_len > max_len:
|