Update app.py
Browse files
app.py
CHANGED
|
@@ -162,7 +162,7 @@ elif selected == 'Projects':
|
|
| 162 |
selected_option = st.selectbox('Select an option', options)
|
| 163 |
|
| 164 |
if selected_option == 'Unet':
|
| 165 |
-
imgs = img_prep(['unet1','unet2'])
|
| 166 |
col1,col2 = st.columns(2)
|
| 167 |
with col1:
|
| 168 |
st.image(imgs[0],use_column_width=False)
|
|
@@ -172,9 +172,9 @@ elif selected == 'Projects':
|
|
| 172 |
img_options = {'img1':1, 'img2':2}
|
| 173 |
img_selected_option = st.selectbox('Select an option', options)
|
| 174 |
if img_selected_option == 'img1':
|
| 175 |
-
st.image(imgs[0],use_column_width=False)
|
| 176 |
if img_selected_option == 'img2':
|
| 177 |
-
st.image(imgs[1],use_column_width=False)
|
| 178 |
|
| 179 |
st.write('You selected:', selected_option)
|
| 180 |
else:
|
|
|
|
| 162 |
selected_option = st.selectbox('Select an option', options)
|
| 163 |
|
| 164 |
if selected_option == 'Unet':
|
| 165 |
+
imgs = img_prep(['unet1.jpg','unet2.jpg'])
|
| 166 |
col1,col2 = st.columns(2)
|
| 167 |
with col1:
|
| 168 |
st.image(imgs[0],use_column_width=False)
|
|
|
|
| 172 |
img_options = {'img1':1, 'img2':2}
|
| 173 |
img_selected_option = st.selectbox('Select an option', options)
|
| 174 |
if img_selected_option == 'img1':
|
| 175 |
+
st.image(model_out(imgs[0],'Portfolio Projects/FloodAreaSegmentationUnetPix2Pix.h5'),use_column_width=False)
|
| 176 |
if img_selected_option == 'img2':
|
| 177 |
+
st.image(model_out(imgs[1],'Portfolio Projects/FloodAreaSegmentationUnetPix2Pix.h5'),use_column_width=False)
|
| 178 |
|
| 179 |
st.write('You selected:', selected_option)
|
| 180 |
else:
|