Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def process_image(image, prompt):
|
|
29 |
|
30 |
# # return Image.fromarray(bw_image)
|
31 |
|
32 |
-
|
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."
|