drewThomasson commited on
Commit
3647817
·
verified ·
1 Parent(s): 71b12ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 84 # Chinese-specific 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