fix shape typo
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def infer(img):
|
|
9 |
_, _, prob = learner.predict(img)
|
10 |
return dict(zip(categories, map(float, prob)))
|
11 |
|
12 |
-
image = gr.inputs.Image(shape(192, 192))
|
13 |
label = gr.outputs.Label()
|
14 |
|
15 |
iface = gr.Interface(fn=infer, inputs=image, outputs=label)
|
|
|
9 |
_, _, prob = learner.predict(img)
|
10 |
return dict(zip(categories, map(float, prob)))
|
11 |
|
12 |
+
image = gr.inputs.Image(shape = (192, 192))
|
13 |
label = gr.outputs.Label()
|
14 |
|
15 |
iface = gr.Interface(fn=infer, inputs=image, outputs=label)
|