pksx01 commited on
Commit
223dc9c
1 Parent(s): 63cf66c

fix: Librosa version upgrade

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ categories = learn.dls.vocab
13
  def mel_spectrogram_tfm(file):
14
  y, sr = librosa.load(file)
15
  y, _ = librosa.effects.trim(y)
16
- spec = librosa.feature.melspectrogram(y, sr=sr, n_fft=2048, hop_length=512)
17
  spec_db = librosa.amplitude_to_db(spec, ref=np.max)
18
  return spec_db
19
 
 
13
  def mel_spectrogram_tfm(file):
14
  y, sr = librosa.load(file)
15
  y, _ = librosa.effects.trim(y)
16
+ spec = librosa.feature.melspectrogram(y=y, sr=sr, n_fft=2048, hop_length=512)
17
  spec_db = librosa.amplitude_to_db(spec, ref=np.max)
18
  return spec_db
19