Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def create_spectrogram_and_get_info(audio_file):
|
|
66 |
|
67 |
# Create the spectrogram
|
68 |
plt.specgram(audio_data, Fs=sample_rate / 1, NFFT=4096, sides='onesided',
|
69 |
-
cmap="
|
70 |
|
71 |
# Save the spectrogram to a PNG file
|
72 |
plt.savefig('spectrogram.png')
|
|
|
66 |
|
67 |
# Create the spectrogram
|
68 |
plt.specgram(audio_data, Fs=sample_rate / 1, NFFT=4096, sides='onesided',
|
69 |
+
cmap="inferno", scale_by_freq=True, scale='dB', mode='magnitude', window=np.hanning(4096))
|
70 |
|
71 |
# Save the spectrogram to a PNG file
|
72 |
plt.savefig('spectrogram.png')
|