Shilpaj commited on
Commit
2da5c55
·
1 Parent(s): ec6dea8

Fix: App issue

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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=[model, device, cond_img_p],
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"):