Gladiator commited on
Commit
85c7830
1 Parent(s): 308f32a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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
- st.image(preds[0])
 
 
 
 
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)