vsanchezn commited on
Commit
09e3cc0
·
1 Parent(s): a5341e2

fix input error...hopefully

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- label = gr.outputs.Label()
 
 
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)