Daniel Cerda Escobar
commited on
Commit
·
c9dbc04
1
Parent(s):
c9b5f79
Update app file
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ with col1:
|
|
33 |
)
|
34 |
|
35 |
st.write('##')
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
with col2:
|
40 |
st.markdown('##### Input File')
|
41 |
# set input image by upload
|
@@ -53,11 +53,11 @@ with st.container(border = True):
|
|
53 |
options = ['factory_pid.png', 'plant_pid.png', 'processing_pid.png'],
|
54 |
format_func = radio_func,
|
55 |
)
|
56 |
-
with col3:
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
33 |
)
|
34 |
|
35 |
st.write('##')
|
36 |
+
|
37 |
+
with st.container(border = True):
|
38 |
+
col1, col2, col3, col4 = st.columns([1, 2, 2, 1], gap='large')
|
39 |
with col2:
|
40 |
st.markdown('##### Input File')
|
41 |
# set input image by upload
|
|
|
53 |
options = ['factory_pid.png', 'plant_pid.png', 'processing_pid.png'],
|
54 |
format_func = radio_func,
|
55 |
)
|
56 |
+
with col3:
|
57 |
+
st.markdown('##### Preview')
|
58 |
+
# visualize input image
|
59 |
+
if image_file is not None:
|
60 |
+
image = Image.open(image_file)
|
61 |
+
else:
|
62 |
+
image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[radio])
|
63 |
+
st.image(image, use_column_width = True)
|