sayakpaul HF staff commited on
Commit
1d20657
1 Parent(s): 3e32c41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- 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
 
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