alexrods commited on
Commit
c0d7d99
1 Parent(s): 437c4f5

add results columns in app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
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("Segmentacion: ")
96
- # st.write(output.shape)
97
- st.image(output[0], width=400)
98
- st.subheader("Mask: ")
99
- # st.write(output.shape)
100
- st.image(output[1], width=400)
 
 
 
 
 
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,