pavankm96 commited on
Commit
ceac976
·
verified ·
1 Parent(s): c1b5e6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ def img_pred(upload):
22
  if confidence < 0.20:
23
  if confidence <0.10:
24
  result="No Tumor"
25
- result = "Uncertain"
 
26
  else:
27
  if predicted_class == 1: # Assuming '1' is 'No Tumor'
28
  result = "No Tumor"
 
22
  if confidence < 0.20:
23
  if confidence <0.10:
24
  result="No Tumor"
25
+ else:
26
+ result = "Uncertain"
27
  else:
28
  if predicted_class == 1: # Assuming '1' is 'No Tumor'
29
  result = "No Tumor"