input issue
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ def classify_img(img):
|
|
11 |
preds, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
-
image = gr.
|
15 |
-
label = gr.
|
16 |
examples = ['dog.jpg', 'cat.jpg']
|
17 |
|
18 |
iface = gr.Interface(fn=classify_img, inputs=image, outputs=label, examples=examples)
|
|
|
11 |
preds, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
+
image = gr.Image(shape=(192, 192))
|
15 |
+
label = gr.Label()
|
16 |
examples = ['dog.jpg', 'cat.jpg']
|
17 |
|
18 |
iface = gr.Interface(fn=classify_img, inputs=image, outputs=label, examples=examples)
|