Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def predict(audio_record, audio_upload, threshold):
|
|
112 |
|
113 |
# Feature extraction
|
114 |
inputs = mel_spectrogram(chunk)
|
115 |
-
inputs = log_mel_spectrogram(inputs).
|
116 |
|
117 |
# Model inference
|
118 |
with torch.no_grad():
|
|
|
112 |
|
113 |
# Feature extraction
|
114 |
inputs = mel_spectrogram(chunk)
|
115 |
+
inputs = log_mel_spectrogram(inputs).unsqueeze(0)
|
116 |
|
117 |
# Model inference
|
118 |
with torch.no_grad():
|