Spaces:
Runtime error
Runtime error
bug fix
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def convert_sounds_melspectogram (audio_file):
|
|
87 |
|
88 |
def predict():
|
89 |
img = PILImage.create('temp.png')
|
90 |
-
pred,pred_idx,probs =
|
91 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
92 |
return labels_probs
|
93 |
|
|
|
87 |
|
88 |
def predict():
|
89 |
img = PILImage.create('temp.png')
|
90 |
+
pred,pred_idx,probs = model.predict(img)
|
91 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
92 |
return labels_probs
|
93 |
|