marquesafonso commited on
Commit
5f81a87
·
verified ·
1 Parent(s): 6d6ab1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ import tempfile
9
  def extract_waveform_animation(audio_file, window_seconds=5):
10
  y, sr = librosa.load(audio_file, sr=None)
11
  duration = librosa.get_duration(y=y, sr=sr)
12
- FPS = 30
13
  fig, ax = plt.subplots()
14
  line, = ax.plot([], [], lw=2)
15
  window_length = int(window_seconds * sr / FPS)
 
9
  def extract_waveform_animation(audio_file, window_seconds=5):
10
  y, sr = librosa.load(audio_file, sr=None)
11
  duration = librosa.get_duration(y=y, sr=sr)
12
+ FPS = 1
13
  fig, ax = plt.subplots()
14
  line, = ax.plot([], [], lw=2)
15
  window_length = int(window_seconds * sr / FPS)