Viet
commited on
Commit
·
ae75212
1
Parent(s):
2f48892
change app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,9 @@ def classify_image(img):
|
|
21 |
pred,idx, probs = learn.predict(img)
|
22 |
return dict(zip(categories, map(float,probs)))
|
23 |
|
24 |
-
image = gr.inputs.Image(shape=(192,192))
|
25 |
-
label = gr.outputs.label()
|
26 |
-
examples = ['cat.jpg']
|
27 |
|
28 |
#intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
29 |
intf = gr.Interface(fn=classify_image,
|
|
|
21 |
pred,idx, probs = learn.predict(img)
|
22 |
return dict(zip(categories, map(float,probs)))
|
23 |
|
24 |
+
#image = gr.inputs.Image(shape=(192,192))
|
25 |
+
#label = gr.outputs.label()
|
26 |
+
#examples = ['cat.jpg']
|
27 |
|
28 |
#intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
29 |
intf = gr.Interface(fn=classify_image,
|