Davidzhangyuanhan commited on
Commit
a6dcd84
1 Parent(s): 43382ea

Add application file

Browse files
142520422_6ad756ddf6_w_d.jpg DELETED
Binary file (44.7 kB)
 
app.py CHANGED
@@ -87,16 +87,19 @@ image = gr.inputs.Image()
87
  label = gr.outputs.Label(num_top_classes=5)
88
 
89
  gr.Interface(
90
- description="Bamboo for Zero-shot Image Recognition Demo (https://github.com/Davidzhangyuanhan/Bamboo)",
91
  fn=recognize_image,
92
  inputs=["image"],
93
  outputs=[
94
  label,
95
  ],
96
- # examples=[
97
- # ["./elephants.png", "an elephant; an elephant walking in the river; four elephants walking in the river"],
98
- # ["./apple_with_ipod.jpg", "an ipod; an apple with a write note 'ipod'; an apple"],
99
- # ["./crowd2.jpg", "a street; a street with a woman walking in the middle; a street with a man walking in the middle"],
100
- # ["./zebras.png", "three zebras on the grass; two zebras on the grass; one zebra on the grass; no zebra on the grass; four zebras on the grass"],
101
- # ],
 
 
 
102
  ).launch()
 
87
  label = gr.outputs.Label(num_top_classes=5)
88
 
89
  gr.Interface(
90
+ description="Bamboo for Image Recognition Demo (https://github.com/Davidzhangyuanhan/Bamboo). Bamboo knows what this object is and what you are doing in a very fine-grain granularity (e.g. Fratercula arctica and dribbler).",
91
  fn=recognize_image,
92
  inputs=["image"],
93
  outputs=[
94
  label,
95
  ],
96
+ examples=[
97
+ ["./examples/playing_mahjong.jpg"],
98
+ ["./examples/dribbler.jpg"],
99
+ ["./examples/Ferrari-F355.jpg"],
100
+ ["./examples/northern_oriole.jpg"],
101
+ ["./examples/fratercula_arctica.jpg"],
102
+ ["./examples/husky.jpg"],
103
+ ["./examples/taraxacum_erythrospermum.jpg"],
104
+ ],
105
  ).launch()
examples/Ferrari-F355.jpg ADDED
examples/basketball.jpg ADDED
examples/dribbler.jpg ADDED
examples/fratercula_arctica.jpg ADDED
examples/husky.jpg ADDED
examples/northern_oriole.jpg ADDED
examples/playing_mahjong.jpg ADDED
examples/taraxacum_erythrospermum.jpg ADDED