tensorkelechi commited on
Commit
d8a79b0
·
verified ·
1 Parent(s): 645fef5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -148,12 +148,12 @@ def run_model_pipeline(model, original_image, comparison_image, threshold=0.3):
148
  col3, col4 = st.columns(2)
149
 
150
  with col3:
151
- x1 = rearrange(img1_tensor.float().squeeze(0), 'b h w c -> b c h w')
152
  fig1 = visualize_heatmap(model, x1)
153
  st.pyplot(fig1)
154
 
155
  with col4:
156
- x2 = rearrange(img2_tensor.float().squeeze(0), 'b h w c -> b c h w')
157
  fig2 = visualize_heatmap(model, x2)
158
  st.pyplot(fig2)
159
 
 
148
  col3, col4 = st.columns(2)
149
 
150
  with col3:
151
+ x1 = rearrange(img1_tensor.float(), 'b h w c -> b c h w')
152
  fig1 = visualize_heatmap(model, x1)
153
  st.pyplot(fig1)
154
 
155
  with col4:
156
+ x2 = rearrange(img2_tensor.float(), 'b h w c -> b c h w')
157
  fig2 = visualize_heatmap(model, x2)
158
  st.pyplot(fig2)
159