moro23 commited on
Commit
d19b13c
·
verified ·
1 Parent(s): b8db7e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def loading_sound_file(sound_file, sr=22050, duration=10):
34
  mfccs = np.mean(lib.feature.mfcc(y=X, sr=sr, n_mfcc=25).T,axis=0)
35
 
36
  ## Reshape to match the model's input shape
37
- data = np.array(mfccs).reshape([1, -1, 1)
38
 
39
  return data
40
 
 
34
  mfccs = np.mean(lib.feature.mfcc(y=X, sr=sr, n_mfcc=25).T,axis=0)
35
 
36
  ## Reshape to match the model's input shape
37
+ data = np.array(mfccs).reshape(1, -1, 1)
38
 
39
  return data
40