Added caption and reuse of big image
Browse files
app.py
CHANGED
@@ -97,12 +97,17 @@ img = image_select(
|
|
97 |
captions=["Edwards AFB1", "Edwards AFB2"],
|
98 |
)
|
99 |
|
100 |
-
#
|
101 |
-
st.
|
|
|
|
|
|
|
102 |
|
103 |
# show status message
|
104 |
-
|
105 |
|
106 |
# process image through detector
|
107 |
img2 = run_process_show(img)
|
108 |
-
|
|
|
|
|
|
97 |
captions=["Edwards AFB1", "Edwards AFB2"],
|
98 |
)
|
99 |
|
100 |
+
# process image through detector
|
101 |
+
status = st.empty()
|
102 |
+
|
103 |
+
# show un-classified image
|
104 |
+
big_img = st.image(img)
|
105 |
|
106 |
# show status message
|
107 |
+
status.write("Running OneEye detector...")
|
108 |
|
109 |
# process image through detector
|
110 |
img2 = run_process_show(img)
|
111 |
+
big_img.image(img2)
|
112 |
+
|
113 |
+
status.write("[Aircraft detected] F-16: 5 ")
|