Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
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)
|