Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -73,13 +73,6 @@ def plot_spectrogram(wav_file, output_image):
|
|
73 |
# Create a plot for the spectrogram
|
74 |
plt.figure(figsize=(10, 4))
|
75 |
plt.specgram(audio_data, Fs=sample_rate, NFFT=1024, noverlap=512, cmap='gray', aspect='auto')
|
76 |
-
plt.title('Spectrogram', fontsize=14)
|
77 |
-
plt.xlabel('Time [s]', fontsize=12)
|
78 |
-
plt.ylabel('Frequency [Hz]', fontsize=12)
|
79 |
-
|
80 |
-
# Add a colorbar and adjust its label
|
81 |
-
cbar = plt.colorbar()
|
82 |
-
cbar.set_label('Intensity', fontsize=12)
|
83 |
|
84 |
# Remove gridlines and ticks for a cleaner look
|
85 |
plt.grid(False)
|
|
|
73 |
# Create a plot for the spectrogram
|
74 |
plt.figure(figsize=(10, 4))
|
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
|
78 |
plt.grid(False)
|