Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def img_pred(upload):
|
|
| 19 |
confidence = predictions[predicted_class] # Confidence of the predicted class
|
| 20 |
|
| 21 |
# Determine if tumor is present
|
| 22 |
-
if predicted_class ==
|
| 23 |
result = "No Tumor"
|
| 24 |
else:
|
| 25 |
result = "Tumor Detected"
|
|
|
|
| 19 |
confidence = predictions[predicted_class] # Confidence of the predicted class
|
| 20 |
|
| 21 |
# Determine if tumor is present
|
| 22 |
+
if predicted_class == 0:
|
| 23 |
result = "No Tumor"
|
| 24 |
else:
|
| 25 |
result = "Tumor Detected"
|