Sarah Yakum commited on
Commit
9e4bc7b
1 Parent(s): e759c10
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -88,7 +88,6 @@ if file_name is not None:
88
  img = np.array(image) * 0.5 + color_seg * 0.5
89
  img = img.astype(np.uint8)
90
 
91
- plt.figure(figsize=(15, 10))
92
  plt.title("Image with Segmentation")
93
- plt.imshow(img)
94
- st.pyplot(img)
 
88
  img = np.array(image) * 0.5 + color_seg * 0.5
89
  img = img.astype(np.uint8)
90
 
91
+ fig = plt.figure(figsize=(15, 10))
92
  plt.title("Image with Segmentation")
93
+ st.pyplot(fig)