Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import numpy as np
|
|
|
3 |
from PIL import Image
|
4 |
from cellpose import models, io, plot
|
5 |
|
@@ -35,5 +36,8 @@ if __name__ == "__main__":
|
|
35 |
model_path="./cellpose_residual_on_style_on_concatenation_off_fold1_ep_649_cv_0.2834",
|
36 |
**model_params
|
37 |
)
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import numpy as np
|
3 |
+
import matplotlib.pyplot as plt
|
4 |
from PIL import Image
|
5 |
from cellpose import models, io, plot
|
6 |
|
|
|
36 |
model_path="./cellpose_residual_on_style_on_concatenation_off_fold1_ep_649_cv_0.2834",
|
37 |
**model_params
|
38 |
)
|
39 |
+
|
40 |
+
fig, ax = plt.subplots()
|
41 |
+
ax.imshow(preds[0])
|
42 |
+
|
43 |
+
st.pyplot(fig)
|