pavankm96 commited on
Commit
f16c7c8
·
verified ·
1 Parent(s): 3730a6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def img_pred(upload):
19
  confidence = predictions[predicted_class] # Confidence of the predicted class
20
 
21
  # Determine if tumor is present
22
- if predicted_class == 1:
23
  result = "No Tumor"
24
  else:
25
  result = "Tumor Detected"
 
19
  confidence = predictions[predicted_class] # Confidence of the predicted class
20
 
21
  # Determine if tumor is present
22
+ if predicted_class == 0:
23
  result = "No Tumor"
24
  else:
25
  result = "Tumor Detected"