jacob-c commited on
Commit
1bfb4bb
·
1 Parent(s): 4adac6c
__pycache__/beat_analysis.cpython-310.pyc CHANGED
Binary files a/__pycache__/beat_analysis.cpython-310.pyc and b/__pycache__/beat_analysis.cpython-310.pyc differ
 
app.py CHANGED
@@ -881,7 +881,7 @@ def enforce_syllable_limits(lines, max_syllables=6):
881
  continue
882
 
883
  # Count syllables in the line
884
- syllable_count = sum(count_syllables_for_word(word) for word in words)
885
 
886
  # If within limits, keep the line as is
887
  if syllable_count <= max_syllables:
@@ -893,7 +893,7 @@ def enforce_syllable_limits(lines, max_syllables=6):
893
  current_syllables = 0
894
 
895
  for word in words:
896
- word_syllables = count_syllables_for_word(word)
897
 
898
  # If adding this word would exceed the limit, start a new line
899
  if current_syllables + word_syllables > max_syllables and current_line:
 
881
  continue
882
 
883
  # Count syllables in the line
884
+ syllable_count = sum(beat_analyzer.count_syllables(word) for word in words)
885
 
886
  # If within limits, keep the line as is
887
  if syllable_count <= max_syllables:
 
893
  current_syllables = 0
894
 
895
  for word in words:
896
+ word_syllables = beat_analyzer.count_syllables(word)
897
 
898
  # If adding this word would exceed the limit, start a new line
899
  if current_syllables + word_syllables > max_syllables and current_line: