Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def show_plot(image):
|
|
38 |
|
39 |
# Compute the saliency map and superimpose.
|
40 |
result_first_block = utils.get_cls_attention_map(
|
41 |
-
|
42 |
)
|
43 |
heatmap = cv2.applyColorMap(
|
44 |
np.uint8(255 * result_first_block), cv2.COLORMAP_CIVIDIS
|
|
|
38 |
|
39 |
# Compute the saliency map and superimpose.
|
40 |
result_first_block = utils.get_cls_attention_map(
|
41 |
+
preprocessed_image, ca_atn_score_dict, block_key="ca_ffn_block_0_att"
|
42 |
)
|
43 |
heatmap = cv2.applyColorMap(
|
44 |
np.uint8(255 * result_first_block), cv2.COLORMAP_CIVIDIS
|