Spaces:
Runtime error
Runtime error
Added examples
Browse files- app.py +3 -1
- bj.jpg +0 -0
- duckly.jpg +0 -0
- some.jpg +0 -0
- turdus.jpg +0 -0
app.py
CHANGED
@@ -76,11 +76,13 @@ def find_best_matches(image):
|
|
76 |
label = ALL_LABELS[idx]
|
77 |
return label
|
78 |
|
|
|
79 |
|
80 |
gr.Interface(fn=find_best_matches,
|
81 |
inputs=[
|
82 |
-
gr.inputs.Image(label="Image to classify", optional=
|
83 |
],
|
|
|
84 |
theme="grass",
|
85 |
outputs=gr.outputs.Label(), enable_queue=True, title="North American Bird Classifier",
|
86 |
description="This application can classify North American Birds.").launch()
|
|
|
76 |
label = ALL_LABELS[idx]
|
77 |
return label
|
78 |
|
79 |
+
examples=[['bj.jpg'],['duckly.jpg'],['bj.jpg'],['turdus.jpg']]
|
80 |
|
81 |
gr.Interface(fn=find_best_matches,
|
82 |
inputs=[
|
83 |
+
gr.inputs.Image(label="Image to classify", optional=False),
|
84 |
],
|
85 |
+
examples=examples,
|
86 |
theme="grass",
|
87 |
outputs=gr.outputs.Label(), enable_queue=True, title="North American Bird Classifier",
|
88 |
description="This application can classify North American Birds.").launch()
|
bj.jpg
ADDED
duckly.jpg
ADDED
some.jpg
ADDED
turdus.jpg
ADDED