joshangngoching commited on
Commit
f4b944e
·
verified ·
1 Parent(s): 1c6b417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ if uploaded_file is not None:
35
  segmentation_results = semantic_segmentation(image)
36
  st.json(segmentation_results)
37
 
38
- image_with_masks = draw_masks_fromDict(image_np, segmentation_results)
39
 
40
  image_with_masks_pil = Image.fromarray(image_with_masks, 'RGB')
41
  st.image(image_with_masks_pil, caption='Image with Masks.', use_column_width=True)
 
35
  segmentation_results = semantic_segmentation(image)
36
  st.json(segmentation_results)
37
 
38
+ image_with_masks = draw_masks_fromDict(np.array(image), segmentation_results)
39
 
40
  image_with_masks_pil = Image.fromarray(image_with_masks, 'RGB')
41
  st.image(image_with_masks_pil, caption='Image with Masks.', use_column_width=True)