Shilpaj commited on
Commit
00f0762
·
1 Parent(s): 2cd1fb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -131,6 +131,8 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
131
 
132
  segment_btn_e.click(segment_everything,
133
  inputs=[
 
 
134
  cond_img_e,
135
  input_size_slider,
136
  iou_threshold,
@@ -176,7 +178,7 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
176
  cond_img_p.select(get_points_with_draw, [cond_img_p, add_or_remove], cond_img_p)
177
 
178
  segment_btn_p.click(segment_with_points,
179
- inputs=[cond_img_p],
180
  outputs=[segm_img_p, cond_img_p])
181
 
182
  with gr.Tab("Text mode"):
@@ -234,6 +236,8 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
234
 
235
  segment_btn_t.click(segment_everything,
236
  inputs=[
 
 
237
  cond_img_t,
238
  input_size_slider_t,
239
  iou_threshold,
 
131
 
132
  segment_btn_e.click(segment_everything,
133
  inputs=[
134
+ model,
135
+ device,
136
  cond_img_e,
137
  input_size_slider,
138
  iou_threshold,
 
178
  cond_img_p.select(get_points_with_draw, [cond_img_p, add_or_remove], cond_img_p)
179
 
180
  segment_btn_p.click(segment_with_points,
181
+ inputs=[model, device, cond_img_p],
182
  outputs=[segm_img_p, cond_img_p])
183
 
184
  with gr.Tab("Text mode"):
 
236
 
237
  segment_btn_t.click(segment_everything,
238
  inputs=[
239
+ model,
240
+ device,
241
  cond_img_t,
242
  input_size_slider_t,
243
  iou_threshold,