Spaces:
Sleeping
Sleeping
Fix: App issue
Browse files
app.py
CHANGED
@@ -241,8 +241,6 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
|
241 |
|
242 |
segment_btn_e.click(segment_everything,
|
243 |
inputs=[
|
244 |
-
model,
|
245 |
-
device,
|
246 |
cond_img_e,
|
247 |
input_size_slider,
|
248 |
iou_threshold,
|
@@ -288,7 +286,7 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
|
288 |
cond_img_p.select(get_points_with_draw, [cond_img_p, add_or_remove], cond_img_p)
|
289 |
|
290 |
segment_btn_p.click(segment_with_points,
|
291 |
-
inputs=[
|
292 |
outputs=[segm_img_p, cond_img_p])
|
293 |
|
294 |
with gr.Tab("Text mode"):
|
|
|
241 |
|
242 |
segment_btn_e.click(segment_everything,
|
243 |
inputs=[
|
|
|
|
|
244 |
cond_img_e,
|
245 |
input_size_slider,
|
246 |
iou_threshold,
|
|
|
286 |
cond_img_p.select(get_points_with_draw, [cond_img_p, add_or_remove], cond_img_p)
|
287 |
|
288 |
segment_btn_p.click(segment_with_points,
|
289 |
+
inputs=[cond_img_p],
|
290 |
outputs=[segm_img_p, cond_img_p])
|
291 |
|
292 |
with gr.Tab("Text mode"):
|