implementing app
Browse files
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 |
-
|
|
|
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)
|