Update app.py
Browse files
app.py
CHANGED
|
@@ -190,7 +190,7 @@ def main():
|
|
| 190 |
|
| 191 |
# Display original image
|
| 192 |
st.subheader("Original Image")
|
| 193 |
-
st.image(image,
|
| 194 |
|
| 195 |
# Preprocess the image
|
| 196 |
img_array = explainer.preprocess_image(image)
|
|
@@ -215,12 +215,12 @@ def main():
|
|
| 215 |
|
| 216 |
with col1:
|
| 217 |
st.subheader("Grad-CAM Heatmap")
|
| 218 |
-
st.image(heatmap,
|
| 219 |
caption="Areas of model's focus (red = high importance)")
|
| 220 |
|
| 221 |
with col2:
|
| 222 |
st.subheader("Heatmap Overlay")
|
| 223 |
-
st.image(superimposed_img,
|
| 224 |
caption="Heatmap superimposed on original image")
|
| 225 |
|
| 226 |
# Explanation of the visualization
|
|
|
|
| 190 |
|
| 191 |
# Display original image
|
| 192 |
st.subheader("Original Image")
|
| 193 |
+
st.image(image, use_container_width=True)
|
| 194 |
|
| 195 |
# Preprocess the image
|
| 196 |
img_array = explainer.preprocess_image(image)
|
|
|
|
| 215 |
|
| 216 |
with col1:
|
| 217 |
st.subheader("Grad-CAM Heatmap")
|
| 218 |
+
st.image(heatmap, use_container_width=True,
|
| 219 |
caption="Areas of model's focus (red = high importance)")
|
| 220 |
|
| 221 |
with col2:
|
| 222 |
st.subheader("Heatmap Overlay")
|
| 223 |
+
st.image(superimposed_img, use_container_width=True,
|
| 224 |
caption="Heatmap superimposed on original image")
|
| 225 |
|
| 226 |
# Explanation of the visualization
|