HuskyDawg commited on
Commit
d50f4a0
·
verified ·
1 Parent(s): 77bd53c

Updated the syntax to fit the new version of Gradio

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def classify_image(img):
19
  return dict(zip(categories, map(float,probs)))
20
 
21
  # Cell
22
- image = gr.inputs.Image(shape=(192, 192))
23
- label = gr.outputs.Label()
24
  examples = ['blackbear.jpg', 'grizzlybear.jpg', 'teddybear.jpg', 'panda.jpg', 'dunno.jpg']
25
 
26
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
 
19
  return dict(zip(categories, map(float,probs)))
20
 
21
  # Cell
22
+ image = gr.Image(height=192, width=192)
23
+ label = gr.Label()
24
  examples = ['blackbear.jpg', 'grizzlybear.jpg', 'teddybear.jpg', 'panda.jpg', 'dunno.jpg']
25
 
26
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)