Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +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 >
|
| 95 |
prediction_text = "Cervix Detected"
|
| 96 |
else:
|
| 97 |
prediction_text = "Non-Cervix"
|
|
|
|
| 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:
|
| 97 |
prediction_text = "Non-Cervix"
|