Beasto commited on
Commit
79db350
·
1 Parent(s): 876737f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,6 +23,7 @@ def img_prep(paths):
23
  img = img.resize((256,256))
24
  img = ((np.asarray(img))/127.5)-1
25
  out.append(img)
 
26
 
27
  def model_out(img,model_path):
28
  img = np.expand_dims(img,0)
@@ -163,7 +164,6 @@ elif selected == 'Projects':
163
 
164
  if selected_option == 'Unet':
165
  imgs = img_prep(['unet1.jpg','unet2.jpg'])
166
- st.write(np.shape(imgs))
167
  col1,col2 = st.columns(2)
168
  with col1:
169
  st.image(imgs[0],use_column_width=False)
 
23
  img = img.resize((256,256))
24
  img = ((np.asarray(img))/127.5)-1
25
  out.append(img)
26
+ return out
27
 
28
  def model_out(img,model_path):
29
  img = np.expand_dims(img,0)
 
164
 
165
  if selected_option == 'Unet':
166
  imgs = img_prep(['unet1.jpg','unet2.jpg'])
 
167
  col1,col2 = st.columns(2)
168
  with col1:
169
  st.image(imgs[0],use_column_width=False)