Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ def predict(img):
|
|
11 |
prediction = str(pred)
|
12 |
|
13 |
# Provide explanation based on the prediction
|
14 |
-
if pred == "
|
15 |
explanation = "The model predicts that the image shows signs of cancer."
|
16 |
-
elif pred == "
|
17 |
explanation = "The model predicts that the image does not show signs of cancer."
|
18 |
elif pred == "implant_cancer_positive":
|
19 |
explanation = "The model predicts that the image shows signs of implant-related cancer."
|
|
|
11 |
prediction = str(pred)
|
12 |
|
13 |
# Provide explanation based on the prediction
|
14 |
+
if pred == "Cancer_positive":
|
15 |
explanation = "The model predicts that the image shows signs of cancer."
|
16 |
+
elif pred == "Cancer_negative":
|
17 |
explanation = "The model predicts that the image does not show signs of cancer."
|
18 |
elif pred == "implant_cancer_positive":
|
19 |
explanation = "The model predicts that the image shows signs of implant-related cancer."
|