nielsr HF staff commited on
Commit
1ca2405
1 Parent(s): 965c521

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def process_image(image, prompt):
29
 
30
  # # return Image.fromarray(bw_image)
31
 
32
- # return Image.open("mask.png").convert("RGB")
33
 
34
  title = "Interactive demo: zero-shot image segmentation with CLIPSeg"
35
  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."
 
29
 
30
  # # return Image.fromarray(bw_image)
31
 
32
+ return Image.open("mask.png").convert("RGB")
33
 
34
  title = "Interactive demo: zero-shot image segmentation with CLIPSeg"
35
  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."