Spaces:
Runtime error
Runtime error
chore: reading image outside with context
Browse files
app.py
CHANGED
|
@@ -45,7 +45,6 @@ with st.spinner('Processing the heat maps. Wait for it 🔥...'):
|
|
| 45 |
|
| 46 |
utils.plot(attentions=attentions, image=preprocessed_img_orig)
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
st.image(image, caption="Attention Heat Maps")
|
|
|
|
| 45 |
|
| 46 |
utils.plot(attentions=attentions, image=preprocessed_img_orig)
|
| 47 |
|
| 48 |
+
# Show the attention maps
|
| 49 |
+
image = Image.open("heat_map.png")
|
|
|
|
| 50 |
st.image(image, caption="Attention Heat Maps")
|