Spaces:
Running
on
L40S
Running
on
L40S
Commit
·
09491d9
1
Parent(s):
6d0aea5
when print statements break stuff
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ def take_bar_aligned_tail(wav, bpm, beats_per_bar, ctx_seconds, max_bars=None):
|
|
147 |
anchored to the end of `wav`, and bar-aligned.
|
148 |
"""
|
149 |
spb = (60.0 / bpm) * beats_per_bar
|
150 |
-
|
151 |
bars_needed = max(1, int(round(ctx_seconds / spb)))
|
152 |
if max_bars is not None:
|
153 |
bars_needed = min(bars_needed, max_bars)
|
|
|
147 |
anchored to the end of `wav`, and bar-aligned.
|
148 |
"""
|
149 |
spb = (60.0 / bpm) * beats_per_bar
|
150 |
+
|
151 |
bars_needed = max(1, int(round(ctx_seconds / spb)))
|
152 |
if max_bars is not None:
|
153 |
bars_needed = min(bars_needed, max_bars)
|