miracle01 commited on
Commit
1b3ef4f
·
1 Parent(s): 1dfac07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -201,7 +201,7 @@ def main():
201
  if st.button("Try test file"):
202
  wav, sr = librosa.load("test.wav", sr=44100)
203
  Xdb = get_melspec("test.wav")[1]
204
- mfccs = librosa.feature.mfcc(wav, sr=sr)
205
  # display audio
206
  st.audio("test.wav", format='audio/wav', start_time=0)
207
  path = "test.wav"
 
201
  if st.button("Try test file"):
202
  wav, sr = librosa.load("test.wav", sr=44100)
203
  Xdb = get_melspec("test.wav")[1]
204
+ mfccs = librosa.feature.mfcc(y=wav, sr=sr)
205
  # display audio
206
  st.audio("test.wav", format='audio/wav', start_time=0)
207
  path = "test.wav"