Spaces:
Running
Running
kushagra124
commited on
Commit
·
3a7a0e5
1
Parent(s):
93322a5
adding example
Browse files
app.py
CHANGED
@@ -73,12 +73,12 @@ def shot(image, labels_text,selected_categoty):
|
|
73 |
|
74 |
iface = gr.Interface(fn=shot,
|
75 |
inputs = ["image","text","text"],
|
76 |
-
outputs="image",
|
77 |
-
description="Add an Image and list of category to be detected separated by commas",
|
78 |
-
title="Zero-shot Image Classification with Prompt ",
|
79 |
examples=[
|
80 |
["images/room.jpg","bed,table,plant",'plant'],
|
81 |
-
["images/city_road.jpg","banner,building facade,
|
82 |
],
|
83 |
# allow_flagging=False,
|
84 |
# analytics_enabled=False,
|
|
|
73 |
|
74 |
iface = gr.Interface(fn=shot,
|
75 |
inputs = ["image","text","text"],
|
76 |
+
outputs = "image",
|
77 |
+
description ="Add an Image and list of category to be detected separated by commas",
|
78 |
+
title = "Zero-shot Image Classification with Prompt ",
|
79 |
examples=[
|
80 |
["images/room.jpg","bed,table,plant",'plant'],
|
81 |
+
["images/city_road.jpg","banner,building facade,door","door"]
|
82 |
],
|
83 |
# allow_flagging=False,
|
84 |
# analytics_enabled=False,
|