Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -412,16 +412,16 @@ with gr.Blocks(css=css, title="Efficient SAM") as demo:
|
|
412 |
# Description
|
413 |
gr.Markdown(description_p)
|
414 |
|
415 |
-
cond_img_p.select(get_points_with_draw, [segm_img_p, cond_img_p], segm_img_p,
|
416 |
|
417 |
-
cond_img_b.select(get_points_with_draw_, [segm_img_b, cond_img_b], segm_img_b,
|
418 |
|
419 |
segment_btn_p.click(
|
420 |
-
segment_with_points, inputs=[cond_img_p], outputs=segm_img_p,
|
421 |
)
|
422 |
|
423 |
segment_btn_b.click(
|
424 |
-
segment_with_boxs, inputs=[cond_img_b, segm_img_b], outputs=segm_img_b,
|
425 |
)
|
426 |
|
427 |
def clear():
|
|
|
412 |
# Description
|
413 |
gr.Markdown(description_p)
|
414 |
|
415 |
+
cond_img_p.select(get_points_with_draw, [segm_img_p, cond_img_p], segm_img_p, concurrency_limit=1)
|
416 |
|
417 |
+
cond_img_b.select(get_points_with_draw_, [segm_img_b, cond_img_b], segm_img_b, concurrency_limit=1)
|
418 |
|
419 |
segment_btn_p.click(
|
420 |
+
segment_with_points, inputs=[cond_img_p], outputs=segm_img_p, concurrency_limit=1
|
421 |
)
|
422 |
|
423 |
segment_btn_b.click(
|
424 |
+
segment_with_boxs, inputs=[cond_img_b, segm_img_b], outputs=segm_img_b, concurrency_limit=1
|
425 |
)
|
426 |
|
427 |
def clear():
|