ss
Browse files- __pycache__/beat_analysis.cpython-310.pyc +0 -0
- app.py +2 -2
__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(
|
| 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 =
|
| 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:
|