Spaces:
Running
Running
Update app.py
Browse files
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:
|