Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,8 @@ 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 |
-
|
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))
|
@@ -92,7 +92,7 @@ with app:
|
|
92 |
""")
|
93 |
image_output = gr.Image()
|
94 |
with gr.Column():
|
95 |
-
gal1=gr.Gallery(type="filepath").style(grid=
|
96 |
|
97 |
image_input.change(fn=image_objects,
|
98 |
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))
|
|
|
92 |
""")
|
93 |
image_output = gr.Image()
|
94 |
with gr.Column():
|
95 |
+
gal1=gr.Gallery(type="filepath").style(grid=10)
|
96 |
|
97 |
image_input.change(fn=image_objects,
|
98 |
inputs=image_input,
|