Spaces:
Runtime error
Runtime error
fix: Librosa version upgrade
Browse files
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 |
|