Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,13 +13,13 @@ def classify_image(img):
|
|
13 |
pred, idx, probs = learn.predict(img)
|
14 |
return dict(zip(categories, map(float, probs)))
|
15 |
|
16 |
-
image = gr.
|
17 |
-
label = gr.
|
18 |
|
19 |
examples = ['siamese.png']
|
20 |
|
21 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
22 |
-
intf.launch(
|
23 |
|
24 |
|
25 |
# labels = learn.dls.vocab
|
|
|
13 |
pred, idx, probs = learn.predict(img)
|
14 |
return dict(zip(categories, map(float, probs)))
|
15 |
|
16 |
+
image = gr.Image()
|
17 |
+
label = gr.Label()
|
18 |
|
19 |
examples = ['siamese.png']
|
20 |
|
21 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
22 |
+
intf.launch()
|
23 |
|
24 |
|
25 |
# labels = learn.dls.vocab
|