sayakpaul HF staff commited on
Commit
0e614b3
1 Parent(s): dad7fe2

fix: title argument

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def serialize_images(processed_map):
78
  """Serializes attention maps."""
79
  for i in range(processed_map.shape[0]):
80
  plt.imshow(processed_map[i].numpy())
81
- plt.tile(f"Attention head: {i}")
82
  plt.imsave(fname="attention_map_{i}.png")
83
 
84
 
 
78
  """Serializes attention maps."""
79
  for i in range(processed_map.shape[0]):
80
  plt.imshow(processed_map[i].numpy())
81
+ plt.title(f"Attention head: {i}", fontsize=14)
82
  plt.imsave(fname="attention_map_{i}.png")
83
 
84