Spaces:
Runtime error
Runtime error
alexrods
commited on
Commit
•
c0d7d99
1
Parent(s):
437c4f5
add results columns in app.py
Browse files
app.py
CHANGED
@@ -92,12 +92,17 @@ if file_imagen is not None:
|
|
92 |
|
93 |
output = segmentation(img)
|
94 |
if output is not None:
|
95 |
-
st.subheader("
|
96 |
-
|
97 |
-
st.
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
# article = "<div style='text-align: center;'><a href='https://keras.io/examples/vision/deeplabv3_plus/' target='_blank'>Keras example by Praveen Kaushik</a></div>"
|
103 |
# gr.Interface(segmentation, i, o, examples=examples, allow_flagging=False, analytics_enabled=False,
|
|
|
92 |
|
93 |
output = segmentation(img)
|
94 |
if output is not None:
|
95 |
+
st.subheader("Original: ")
|
96 |
+
st.image(img, width=850)
|
97 |
+
col1, col2 = st.columns(2)
|
98 |
+
|
99 |
+
with col1:
|
100 |
+
st.subheader("Segmentacion: ")
|
101 |
+
st.image(output[0])
|
102 |
+
|
103 |
+
with col2:
|
104 |
+
st.subheader("Mask: ")
|
105 |
+
st.image(output[1])
|
106 |
|
107 |
# article = "<div style='text-align: center;'><a href='https://keras.io/examples/vision/deeplabv3_plus/' target='_blank'>Keras example by Praveen Kaushik</a></div>"
|
108 |
# gr.Interface(segmentation, i, o, examples=examples, allow_flagging=False, analytics_enabled=False,
|