Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,11 +40,10 @@ def predict_disease(image_file, model, all_labels, target_language):
|
|
40 |
if max_confidence < confidence_threshold:
|
41 |
print(f"Prediction confidence ({max_confidence:.2f}) is too low.")
|
42 |
return f"""
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
"""
|
48 |
|
49 |
predicted_class = np.argmax(predictions[0])
|
50 |
|
|
|
40 |
if max_confidence < confidence_threshold:
|
41 |
print(f"Prediction confidence ({max_confidence:.2f}) is too low.")
|
42 |
return f"""
|
43 |
+
<h3 style="color:red; text-align:center;">
|
44 |
+
Please upload a clearer image of the plant.
|
45 |
+
</h3>
|
46 |
+
"""
|
|
|
47 |
|
48 |
predicted_class = np.argmax(predictions[0])
|
49 |
|