Update app.py
Browse files
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 |
-
|
|
|
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"
|