skcoirz commited on
Commit
1156a91
Β·
1 Parent(s): 51b5d35

fix shape typo

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)