Omnibus commited on
Commit
8c84c61
β€’
1 Parent(s): 8607e75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -44,7 +44,9 @@ def blurr_object(image, object, blur_strength):
44
  mask_array_three_channel_invert = 1-mask_array_three_channel
45
  blur_image_reverse_mask = blur_image*mask_array_three_channel_invert
46
 
47
- seg_out=segmented_image.astype(np.uint8)
 
 
48
 
49
  blurred_output_image = Image.fromarray((blur_image_reverse_mask).astype(np.uint8)+segmented_image.astype(np.uint8))
50
  for _ in range(int(blur_strength//2.5)):
@@ -90,7 +92,7 @@ with app:
90
  """)
91
  image_output = gr.Image()
92
  with gr.Column():
93
- gal1=gr.Pil()
94
 
95
  image_input.change(fn=image_objects,
96
  inputs=image_input,
 
44
  mask_array_three_channel_invert = 1-mask_array_three_channel
45
  blur_image_reverse_mask = blur_image*mask_array_three_channel_invert
46
 
47
+ #seg_out=segmented_image.astype(np.uint8)
48
+ seg_out=image_array.astype(np.uint8)
49
+
50
 
51
  blurred_output_image = Image.fromarray((blur_image_reverse_mask).astype(np.uint8)+segmented_image.astype(np.uint8))
52
  for _ in range(int(blur_strength//2.5)):
 
92
  """)
93
  image_output = gr.Image()
94
  with gr.Column():
95
+ gal1=gr.Gallery()
96
 
97
  image_input.change(fn=image_objects,
98
  inputs=image_input,