Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
55 |
-
formatted_percentage = "Sorry we
|
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
|