Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ if uploaded_file:
|
|
| 35 |
image = preprocess_dicom_bytes(uploaded_file.read())
|
| 36 |
prob = model.predict(image)[0][0]
|
| 37 |
|
| 38 |
-
label = "Pneumonia" if prob >= 0.
|
| 39 |
|
| 40 |
st.success("Prediction complete")
|
| 41 |
st.write(f"**Predicted Class:** {label}")
|
|
|
|
| 35 |
image = preprocess_dicom_bytes(uploaded_file.read())
|
| 36 |
prob = model.predict(image)[0][0]
|
| 37 |
|
| 38 |
+
label = "Pneumonia" if prob >= 0.45 else "No Pneumonia"
|
| 39 |
|
| 40 |
st.success("Prediction complete")
|
| 41 |
st.write(f"**Predicted Class:** {label}")
|