Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ def greet(audio):
|
|
5 |
path = audio
|
6 |
y, sr = librosa.load(path)
|
7 |
print(path)
|
|
|
8 |
mel_spectrogram = librosa.feature.melspectrogram(y=y, sr=sr)
|
9 |
return mel_spectrogram
|
10 |
|
|
|
5 |
path = audio
|
6 |
y, sr = librosa.load(path)
|
7 |
print(path)
|
8 |
+
np.clip(y,-1,1)
|
9 |
mel_spectrogram = librosa.feature.melspectrogram(y=y, sr=sr)
|
10 |
return mel_spectrogram
|
11 |
|