marquesafonso commited on
Commit
6f146a7
·
verified ·
1 Parent(s): 46972b6

ensure indices are integers

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def extract_waveform_animation(audio_file, window_seconds=5):
27
 
28
  def update(frame):
29
  # Get current window
30
- start = frame * (sr / FPS)
31
  end = start + window_length
32
  window = y[start:end]
33
 
 
27
 
28
  def update(frame):
29
  # Get current window
30
+ start = frame * (sr // FPS)
31
  end = start + window_length
32
  window = y[start:end]
33