valmun commited on
Commit
5e03011
1 Parent(s): a9fb7f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,8 +51,8 @@ def predict(image):
51
 
52
  # Include the message in the leaf_category textbox if leaf identification fails
53
  if disease_name == "Not applicable":
54
- leaf_category = "Unfortunately, we are having trouble to identifying a singular leaf in this image. \n(try uploading a different image with your leaf on a white backgound)"
55
- formatted_percentage = "Sorry we could not figure it out :("
56
 
57
 
58
  return leaf_category.capitalize(), disease_name.replace('_', ' ').capitalize(), formatted_percentage
 
51
 
52
  # Include the message in the leaf_category textbox if leaf identification fails
53
  if disease_name == "Not applicable":
54
+ leaf_category = "Unfortunately, we are having trouble identifying a singular leaf in this image. \n(try uploading a different image with your leaf on a white backgound)"
55
+ formatted_percentage = "Sorry we couldn't figure it out :("
56
 
57
 
58
  return leaf_category.capitalize(), disease_name.replace('_', ' ').capitalize(), formatted_percentage