Spaces:
Runtime error
Runtime error
Commit ·
e415ef5
1
Parent(s): 2446efa
Upload app.py
Browse files
app.py
CHANGED
|
@@ -301,7 +301,7 @@ with gr.Blocks(title='Fast Segment Anything') as demo:
|
|
| 301 |
contour_check,
|
| 302 |
retina_check,
|
| 303 |
text_box,
|
| 304 |
-
|
| 305 |
],
|
| 306 |
outputs=segm_img_t)
|
| 307 |
|
|
@@ -311,9 +311,9 @@ with gr.Blocks(title='Fast Segment Anything') as demo:
|
|
| 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()
|
|
|
|
| 301 |
contour_check,
|
| 302 |
retina_check,
|
| 303 |
text_box,
|
| 304 |
+
wider_check,
|
| 305 |
],
|
| 306 |
outputs=segm_img_t)
|
| 307 |
|
|
|
|
| 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()
|