Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def plot_spectrogram(wav_file, output_image):
|
|
71 |
audio_data = audio_data.mean(axis=1)
|
72 |
|
73 |
# Create a plot for the spectrogram
|
74 |
-
plt.figure(figsize=(10,
|
75 |
plt.specgram(audio_data, Fs=sample_rate, NFFT=1024, noverlap=512, cmap='gray', aspect='auto')
|
76 |
|
77 |
# Remove gridlines and ticks for a cleaner look
|
|
|
71 |
audio_data = audio_data.mean(axis=1)
|
72 |
|
73 |
# Create a plot for the spectrogram
|
74 |
+
plt.figure(figsize=(10, 1))
|
75 |
plt.specgram(audio_data, Fs=sample_rate, NFFT=1024, noverlap=512, cmap='gray', aspect='auto')
|
76 |
|
77 |
# Remove gridlines and ticks for a cleaner look
|