Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -494,7 +494,7 @@ def split_long_sentence(sentence, language='en', max_pauses=10):
|
|
494 |
"""
|
495 |
# Adjust the max_length and punctuation symbols based on language
|
496 |
if language == 'zh-cn':
|
497 |
-
max_length =
|
498 |
punctuation = [',', '。', ';', '!', '?'] # Chinese-specific punctuation
|
499 |
elif language == 'it':
|
500 |
max_length = 213 # Italian-specific max length
|
|
|
494 |
"""
|
495 |
# Adjust the max_length and punctuation symbols based on language
|
496 |
if language == 'zh-cn':
|
497 |
+
max_length = 82 # Chinese-specific max length
|
498 |
punctuation = [',', '。', ';', '!', '?'] # Chinese-specific punctuation
|
499 |
elif language == 'it':
|
500 |
max_length = 213 # Italian-specific max length
|