kmunzwa commited on
Commit
b744d5d
·
verified ·
1 Parent(s): 03b270b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -91,6 +91,7 @@ def classify_image(image):
91
  print(f"Non-Cervix: {prob_non_cervix:.4f} | Cervix: {prob_cervix:.4f}")
92
 
93
  # determine the final prediction label
 
94
  if prob_cervix >= 0.55:
95
  prediction_text = "Cervix Detected"
96
  else:
 
91
  print(f"Non-Cervix: {prob_non_cervix:.4f} | Cervix: {prob_cervix:.4f}")
92
 
93
  # determine the final prediction label
94
+ # cervix must score at least 0.55 to be accepted as a positive detection
95
  if prob_cervix >= 0.55:
96
  prediction_text = "Cervix Detected"
97
  else: