Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def extract_waveform_animation(audio_file, window_seconds=5):
|
|
20 |
|
21 |
def init():
|
22 |
ax.set_xlim(0, window_seconds)
|
23 |
-
ax.set_ylim(np.min(y), np.max(y)
|
24 |
return line,
|
25 |
|
26 |
def update(frame):
|
|
|
20 |
|
21 |
def init():
|
22 |
ax.set_xlim(0, window_seconds)
|
23 |
+
ax.set_ylim(np.min(y), np.max(y)) # Reduced max for visibility
|
24 |
return line,
|
25 |
|
26 |
def update(frame):
|