Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,4 +20,5 @@ def image_classifier(inp):
|
|
20 |
confidence_scores /= np.sum(confidence_scores)
|
21 |
classes = ['Avocado', 'Banana', 'Guava', 'Mango']
|
22 |
result = {classes[i]: confidence_scores[i] for i in range(4)}
|
23 |
-
return result
|
|
|
|
20 |
confidence_scores /= np.sum(confidence_scores)
|
21 |
classes = ['Avocado', 'Banana', 'Guava', 'Mango']
|
22 |
result = {classes[i]: confidence_scores[i] for i in range(4)}
|
23 |
+
return result
|
24 |
+
|