Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ def classify_image(img):
|
|
14 |
pred,idx,probs = learn.predict(img)
|
15 |
return dict(zip(categories,map(float,probs)))
|
16 |
|
17 |
-
image = gr.
|
18 |
-
label = gr.
|
19 |
examples = ['./Cat.jpg','./dog.jpg','./heh.jpg']
|
20 |
|
21 |
intf = gr.Interface(fn=classify_image,inputs=image,outputs=label,examples=examples)
|
|
|
14 |
pred,idx,probs = learn.predict(img)
|
15 |
return dict(zip(categories,map(float,probs)))
|
16 |
|
17 |
+
image = gr.Image((192,192))
|
18 |
+
label = gr.Label()
|
19 |
examples = ['./Cat.jpg','./dog.jpg','./heh.jpg']
|
20 |
|
21 |
intf = gr.Interface(fn=classify_image,inputs=image,outputs=label,examples=examples)
|