moldenhof commited on
Commit
ff8787b
·
1 Parent(s): c4521a7

implementing app

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -69,7 +69,8 @@ if image_file is not None:
69
  st.write(bbox)
70
  st.write(label)
71
  plot_bbox(bbox, label)
72
-
73
- col2.image(plt.show(), use_column_width=True)
 
74
  #x = st.slider('Select a value')
75
  #st.write(x, 'squared is', x * x)
 
69
  st.write(bbox)
70
  st.write(label)
71
  plot_bbox(bbox, label)
72
+ plt.savefig("example_image.png",bbox_inches='tight', pad_inches=0)
73
+ image_vis = Image.open("example_image.png")
74
+ col2.image(image_vis, use_column_width=True)
75
  #x = st.slider('Select a value')
76
  #st.write(x, 'squared is', x * x)