nielsr HF staff commited on
Commit
7e3a41d
1 Parent(s): 26f4d3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ title = "Interactive demo: zero-shot image segmentation with CLIPSeg"
32
  description = "Demo for using CLIPSeg, a CLIP-based model for zero- and one-shot image segmentation. To use it, simply upload an image and add a text to mask (identify in the image), or use one of the examples below and click 'submit'. Results will show up in a few seconds."
33
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10003'>CLIPSeg: Image Segmentation Using Text and Image Prompts</a> | <a href='https://huggingface.co/docs/transformers/main/en/model_doc/clipseg'>HuggingFace docs</a></p>"
34
 
35
- examples = [["a glass", "something to fill", "wood", "a jar"]]
36
 
37
  interface = gr.Interface(fn=process_image,
38
  inputs=[gr.Image(type="pil"), gr.Textbox(label="What do you want to identify (separated by comma)?")],
 
32
  description = "Demo for using CLIPSeg, a CLIP-based model for zero- and one-shot image segmentation. To use it, simply upload an image and add a text to mask (identify in the image), or use one of the examples below and click 'submit'. Results will show up in a few seconds."
33
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10003'>CLIPSeg: Image Segmentation Using Text and Image Prompts</a> | <a href='https://huggingface.co/docs/transformers/main/en/model_doc/clipseg'>HuggingFace docs</a></p>"
34
 
35
+ examples = [["example_image.png", "a glass", "something to fill", "wood", "a jar"]]
36
 
37
  interface = gr.Interface(fn=process_image,
38
  inputs=[gr.Image(type="pil"), gr.Textbox(label="What do you want to identify (separated by comma)?")],