fffiloni commited on
Commit
4d1bdc0
·
verified ·
1 Parent(s): ae1ac9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 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
 
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