Spaces:
Runtime error
Runtime error
Davidzhangyuanhan
commited on
Commit
•
a6dcd84
1
Parent(s):
43382ea
Add application file
Browse files- 142520422_6ad756ddf6_w_d.jpg +0 -0
- app.py +10 -7
- examples/Ferrari-F355.jpg +0 -0
- examples/basketball.jpg +0 -0
- examples/dribbler.jpg +0 -0
- examples/fratercula_arctica.jpg +0 -0
- examples/husky.jpg +0 -0
- examples/northern_oriole.jpg +0 -0
- examples/playing_mahjong.jpg +0 -0
- examples/taraxacum_erythrospermum.jpg +0 -0
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
|
91 |
fn=recognize_image,
|
92 |
inputs=["image"],
|
93 |
outputs=[
|
94 |
label,
|
95 |
],
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
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