Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|