fix input error...hopefully
Browse files
app.py
CHANGED
@@ -24,8 +24,10 @@ def classify_image(img):
|
|
24 |
return dict(zip(categories, map(float, probs)))
|
25 |
|
26 |
# Cell
|
27 |
-
image = gr.inputs.Image(shape=(192, 192))
|
28 |
-
|
|
|
|
|
29 |
examples = ['dog1.jpeg', 'dog2.jpeg', 'dog3.jpeg']
|
30 |
|
31 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
24 |
return dict(zip(categories, map(float, probs)))
|
25 |
|
26 |
# Cell
|
27 |
+
# image = gr.inputs.Image(shape=(192, 192))
|
28 |
+
image = gr.Image(height=192, width=192)
|
29 |
+
label = gr.Label()
|
30 |
+
# label = gr.outputs.Label()
|
31 |
examples = ['dog1.jpeg', 'dog2.jpeg', 'dog3.jpeg']
|
32 |
|
33 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|