Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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 |
|