Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -103,6 +103,7 @@ def slider_release(index, image, mask_np_list_updated, mask_label_list):
|
|
103 |
mask_label = mask_label_list[index]
|
104 |
segmentation = create_segmentation(mask_np_list_updated)
|
105 |
new_image = transparent_paste_with_mask(image, segmentation, mask_np, transparency = TRANSPARENCY)
|
|
|
106 |
return new_image, mask_label
|
107 |
def image_change():
|
108 |
return gr.Slider(value = 0, minimum=0, maximum=1, step=1, visible=False),gr.Button("Step 3. Run Editing (Check log for progress.)",interactive = False)
|
|
|
103 |
mask_label = mask_label_list[index]
|
104 |
segmentation = create_segmentation(mask_np_list_updated)
|
105 |
new_image = transparent_paste_with_mask(image, segmentation, mask_np, transparency = TRANSPARENCY)
|
106 |
+
gr.Info('Edit '+ mask_label)
|
107 |
return new_image, mask_label
|
108 |
def image_change():
|
109 |
return gr.Slider(value = 0, minimum=0, maximum=1, step=1, visible=False),gr.Button("Step 3. Run Editing (Check log for progress.)",interactive = False)
|