Spaces:
Runtime error
Runtime error
lowrollr
commited on
Commit
•
3861e4e
1
Parent(s):
a509e9f
update flagging arg
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def classify_bird(img):
|
|
12 |
image = gr.inputs.Image(shape=(256, 256))
|
13 |
label = gr.outputs.Label(num_top_classes=5)
|
14 |
|
15 |
-
examples = ['eagle.jpg', 'hawk.jpg', 'falcon.jpg', 'owl.jpg', 'vulture.jpg']
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
fn=classify_bird,
|
@@ -21,6 +21,6 @@ iface = gr.Interface(
|
|
21 |
examples=examples,
|
22 |
title='Birds of Prey Classifier',
|
23 |
description='Classifies images as one of 5 classes: eagle, hawk, falcon, owl, vulture',
|
24 |
-
allow_flagging=
|
25 |
)
|
26 |
iface.launch()
|
12 |
image = gr.inputs.Image(shape=(256, 256))
|
13 |
label = gr.outputs.Label(num_top_classes=5)
|
14 |
|
15 |
+
examples = ['./example_images/' + e for e in ['eagle.jpg', 'hawk.jpg', 'falcon.jpg', 'owl.jpg', 'vulture.jpg']]
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
fn=classify_bird,
|
21 |
examples=examples,
|
22 |
title='Birds of Prey Classifier',
|
23 |
description='Classifies images as one of 5 classes: eagle, hawk, falcon, owl, vulture',
|
24 |
+
allow_flagging='never'
|
25 |
)
|
26 |
iface.launch()
|