Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def predict(img):
|
|
| 12 |
|
| 13 |
# Check if the predicted label is 'Other'
|
| 14 |
if pred == 'Other':
|
| 15 |
-
return 'The model can\'t recognize the image, adjust your camera angle and take a close picture of a leaf'
|
| 16 |
|
| 17 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
# Check if the predicted label is 'Other'
|
| 14 |
if pred == 'Other':
|
| 15 |
+
return {'Message': 'The model can\'t recognize the image, adjust your camera angle and take a close picture of a leaf'}
|
| 16 |
|
| 17 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 18 |
|