Update app.py
Browse files
app.py
CHANGED
@@ -88,22 +88,15 @@ rand_class_colors = generate_label_colors(len(classes))
|
|
88 |
####################################################
|
89 |
# Main UX Loop
|
90 |
####################################################
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
# process image through detector
|
104 |
-
img2 = run_process_show(img)
|
105 |
-
st.image(img2)
|
106 |
-
|
107 |
-
with right_column:
|
108 |
-
st.write(f"X F16s")
|
109 |
-
st.write(f"X B52s")
|
|
|
88 |
####################################################
|
89 |
# Main UX Loop
|
90 |
####################################################
|
91 |
+
img = image_select(
|
92 |
+
label="Select an airbase",
|
93 |
+
images=[
|
94 |
+
cv2.imread("images/edwards.jpg"),
|
95 |
+
cv2.imread("images/edwards2.jpg"),
|
96 |
+
],
|
97 |
+
captions=["Edwards AFB1", "Edwards AFB2"],
|
98 |
+
)
|
99 |
+
|
100 |
+
# process image through detector
|
101 |
+
img2 = run_process_show(img)
|
102 |
+
st.image(img2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|