tensorkelechi commited on
Commit
30c0a83
·
verified ·
1 Parent(s): 1d8a6e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -147,10 +147,10 @@ def run_model_pipeline(model, original_image, comparison_image, threshold=0.5):
147
  st.subheader("Feature Heatmaps")
148
  col3, col4 = st.columns(2)
149
  with col3:
150
- fig1 = visualize_heatmap(model, img1_tensor)
151
  st.pyplot(fig1)
152
  with col4:
153
- fig2 = visualize_heatmap(model, img2_tensor)
154
  st.pyplot(fig2)
155
 
156
  else:
 
147
  st.subheader("Feature Heatmaps")
148
  col3, col4 = st.columns(2)
149
  with col3:
150
+ fig1 = visualize_heatmap(model, img1_tensor.float().squeeze(0))
151
  st.pyplot(fig1)
152
  with col4:
153
+ fig2 = visualize_heatmap(model, img2_tensor.float().squeeze(0))
154
  st.pyplot(fig2)
155
 
156
  else: