Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def classify_img(img):
|
|
| 10 |
pred,idx,probs=learn.predict(img)
|
| 11 |
return dict(zip(categories,map(float,probs)))
|
| 12 |
|
| 13 |
-
image=
|
| 14 |
-
label=
|
| 15 |
-
intf=gr.Interface(fn=classify_img,inputs=image,outputs=label,
|
| 16 |
intf.launch(share=True)
|
|
|
|
| 10 |
pred,idx,probs=learn.predict(img)
|
| 11 |
return dict(zip(categories,map(float,probs)))
|
| 12 |
|
| 13 |
+
image=grc.Image(shape=(192,192))
|
| 14 |
+
label=grc.Label()
|
| 15 |
+
intf=gr.Interface(fn=classify_img,inputs=image,outputs=label,examples=examples)
|
| 16 |
intf.launch(share=True)
|