azeemkhan417 commited on
Commit
04e2557
·
verified ·
1 Parent(s): 6301841

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -190,7 +190,7 @@ def main():
190
 
191
  # Display original image
192
  st.subheader("Original Image")
193
- st.image(image, use_column_width=True)
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, use_column_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_column_width=True,
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