fixed the label
Browse files
app.py
CHANGED
@@ -9,9 +9,8 @@ def classify_images(img):
|
|
9 |
pred, index, probs = learner.predict(img)
|
10 |
return dict(zip(categories, map(float, probs)))
|
11 |
|
12 |
-
|
13 |
image = gr.Image()
|
14 |
-
label = gr.
|
15 |
examples = ['kentish_plover.png', 'white-faced_plover.png']
|
16 |
|
17 |
intf = gr.Interface(fn=classify_images, inputs=image, outputs=label, examples=examples)
|
|
|
9 |
pred, index, probs = learner.predict(img)
|
10 |
return dict(zip(categories, map(float, probs)))
|
11 |
|
|
|
12 |
image = gr.Image()
|
13 |
+
label = gr.Label()
|
14 |
examples = ['kentish_plover.png', 'white-faced_plover.png']
|
15 |
|
16 |
intf = gr.Interface(fn=classify_images, inputs=image, outputs=label, examples=examples)
|