Addai commited on
Commit
56db208
·
1 Parent(s): 66ca70e

Update app.py

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