lyimo commited on
Commit
23c3e72
·
1 Parent(s): da23bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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