t4ai commited on
Commit
0680486
1 Parent(s): 527a9fe

Added caption and reuse of big image

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -97,12 +97,17 @@ img = image_select(
97
  captions=["Edwards AFB1", "Edwards AFB2"],
98
  )
99
 
100
- # show un classified image
101
- st.image(img)
 
 
 
102
 
103
  # show status message
104
- st.write("Running OneEye aircraft detector...")
105
 
106
  # process image through detector
107
  img2 = run_process_show(img)
108
- st.image(img2)
 
 
 
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 ")