ariG23498 HF staff commited on
Commit
87eb18f
1 Parent(s): 004c076

chore: checking with plt obj

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -47,5 +47,4 @@ with st.spinner("Generating the heat maps... HOLD ON!"):
47
 
48
  # Show the attention maps
49
  st.title("Attention 🔥 Maps")
50
- image = Image.frombytes('RGB', plt.canvas.get_width_height(), plt.canvas.tostring_rgb())
51
- st.image(image, caption="Attention Heat Maps")
 
47
 
48
  # Show the attention maps
49
  st.title("Attention 🔥 Maps")
50
+ st.image(plt, caption="Attention Heat Maps")