RashiAgarwal commited on
Commit
4f459b7
·
1 Parent(s): fdc2d8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -141,8 +141,8 @@ def get_points_with_draw(image, label, evt: gr.SelectData):
141
  return image
142
 
143
 
144
- cond_img_e = gr.Image(label="Input", value=default_example[0], type='pil')
145
- cond_img_p = gr.Image(label="Input with points", value=default_example[0], type='pil')
146
  cond_img_t = gr.Image(label="Input with text", value="examples/cars.jpg", type='pil')
147
 
148
  segm_img_e = gr.Image(label="Segmented Image", interactive=False, type='pil')
@@ -282,7 +282,7 @@ with gr.Blocks(title='Fast Segment Anything') as demo:
282
  clear_btn_t = gr.Button("Clear", variant="secondary")
283
 
284
  gr.Markdown("Try some of the examples below")
285
- gr.Examples(examples=[["examples/cars.jpg", "a blue car"], ["examples/cats_monkey.jpg","a cat"], ["examples/cat_dog.jpg","a dog"]],
286
  inputs=[cond_img_t],
287
  # outputs=segm_img_e,
288
  # fn=segment_everything,
 
141
  return image
142
 
143
 
144
+ cond_img_e = gr.Image(label="Input", value=default_example[2], type='pil')
145
+ cond_img_p = gr.Image(label="Input with points", value=default_example[1], type='pil')
146
  cond_img_t = gr.Image(label="Input with text", value="examples/cars.jpg", type='pil')
147
 
148
  segm_img_e = gr.Image(label="Segmented Image", interactive=False, type='pil')
 
282
  clear_btn_t = gr.Button("Clear", variant="secondary")
283
 
284
  gr.Markdown("Try some of the examples below")
285
+ gr.Examples(examples=[["examples/cars.jpg", "a blue car"], ["examples/flowers.jpg"], ["examples/dogs.jpg"]],
286
  inputs=[cond_img_t],
287
  # outputs=segm_img_e,
288
  # fn=segment_everything,