Spaces:
Paused
Paused
Commit
·
16208fd
1
Parent(s):
ea0c1b2
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ def segment_with_points(
|
|
121 |
|
122 |
global_points = []
|
123 |
global_point_label = []
|
124 |
-
return fig
|
125 |
|
126 |
|
127 |
def get_points_with_draw(image, label, evt: gr.SelectData):
|
@@ -311,9 +311,9 @@ with gr.Blocks(title='Fast Segment Anything') as demo:
|
|
311 |
def clear_text():
|
312 |
return None, None, None
|
313 |
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
|
318 |
demo.queue()
|
319 |
demo.launch()
|
|
|
121 |
|
122 |
global_points = []
|
123 |
global_point_label = []
|
124 |
+
return fig
|
125 |
|
126 |
|
127 |
def get_points_with_draw(image, label, evt: gr.SelectData):
|
|
|
311 |
def clear_text():
|
312 |
return None, None, None
|
313 |
|
314 |
+
clear_btn_e.click(clear, outputs=[cond_img_e, segm_img_e])
|
315 |
+
clear_btn_p.click(clear, outputs=[cond_img_p, segm_img_p])
|
316 |
+
clear_btn_t.click(clear_text, outputs=[cond_img_p, segm_img_p, text_box])
|
317 |
|
318 |
demo.queue()
|
319 |
demo.launch()
|