Cecilia Casarini commited on
Commit
3e4d856
·
verified ·
1 Parent(s): 9d1d599

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ def classify_image(img):
9
  pred, idx, probs = learn.predict(img)
10
  return dict(zip(categories, map(float, probs)))
11
 
12
- image = gr.inputs.Image()
13
- label = gr.outputs.Label()
14
 
15
 
16
  examples = ['vanilla.jpg', 'coffee.jpg']
 
9
  pred, idx, probs = learn.predict(img)
10
  return dict(zip(categories, map(float, probs)))
11
 
12
+ image = gr.Image()
13
+ label = gr.Label()
14
 
15
 
16
  examples = ['vanilla.jpg', 'coffee.jpg']