Gladiator commited on
Commit
708ffff
1 Parent(s): a850326

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -48,7 +48,8 @@ if __name__ == "__main__":
48
  st.title("Sartorius Cell Segmentation")
49
 
50
  uploaded_img = st.file_uploader(label="Upload neuronal cell image")
51
- if uploaded_img is not None:
 
52
  img = Image.open(uploaded_img)
53
  img = np.array(img)
54
  st.image(img)
@@ -65,4 +66,4 @@ if __name__ == "__main__":
65
  **model_params
66
  )
67
 
68
- print(preds)
 
48
  st.title("Sartorius Cell Segmentation")
49
 
50
  uploaded_img = st.file_uploader(label="Upload neuronal cell image")
51
+ segment = st.button("Perform segmentation")
52
+ if uploaded_img is not None and segment:
53
  img = Image.open(uploaded_img)
54
  img = np.array(img)
55
  st.image(img)
 
66
  **model_params
67
  )
68
 
69
+ print(preds)