Spaces:
Running
Running
Commit
·
bba5a32
1
Parent(s):
5759739
adding app with CLIP image segmentation
Browse files
app.py
CHANGED
@@ -59,16 +59,16 @@ def shot(image, labels_text):
|
|
59 |
return category_image
|
60 |
|
61 |
iface = gr.Interface(fn=shot,
|
62 |
-
inputs = ["image","text"],
|
63 |
outputs = "image",
|
64 |
description ="Add an Image and lists of category to be detected separated by commas(atleast 2 )",
|
65 |
title = "Zero-shot Image Segmentation with Prompt ",
|
66 |
examples=[
|
67 |
-
["images/room.jpg","bed, table, plant, light, window,light"],
|
68 |
-
["images/image2.png","banner, building,door, sign,"],
|
69 |
-
["images/seats.jpg","door,table,chairs"],
|
70 |
-
["images/vegetables.jpg","carrot,radish,beans,potato,brnjal,basket"],
|
71 |
-
["images/room2.jpg","door,platns,dog,coffe table,mug,pillow,table lamp,carpet,pictures,door,clock"]
|
72 |
],
|
73 |
# allow_flagging=False,
|
74 |
# analytics_enabled=False,
|
|
|
59 |
return category_image
|
60 |
|
61 |
iface = gr.Interface(fn=shot,
|
62 |
+
inputs = [gr.Slider(5, 50, value=15, label="Brightness", info="Choose between 5 and 50"),"image","text"],
|
63 |
outputs = "image",
|
64 |
description ="Add an Image and lists of category to be detected separated by commas(atleast 2 )",
|
65 |
title = "Zero-shot Image Segmentation with Prompt ",
|
66 |
examples=[
|
67 |
+
[15,"images/room.jpg","bed, table, plant, light, window,light"],
|
68 |
+
[10,"images/image2.png","banner, building,door, sign,"],
|
69 |
+
[19,"images/seats.jpg","door,table,chairs"],
|
70 |
+
[20,"images/vegetables.jpg","carrot,radish,beans,potato,brnjal,basket"],
|
71 |
+
[17,"images/room2.jpg","door,platns,dog,coffe table,mug,pillow,table lamp,carpet,pictures,door,clock"]
|
72 |
],
|
73 |
# allow_flagging=False,
|
74 |
# analytics_enabled=False,
|