Verocayden commited on
Commit
230d9a8
·
verified ·
1 Parent(s): 3dcc988

Tried to change to non-deprecated functions

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ def classify_image(img):
16
  pred, idx, probs = learn.predict(img)
17
  return dict(zip(categories, map(float, probs)))
18
 
19
- image = gr.inputs.Image(shape=(192, 192))
20
- label = gr.outputs.label()
21
 
22
  examples = ['dog.jpg', 'cat.jpg']
23
 
 
16
  pred, idx, probs = learn.predict(img)
17
  return dict(zip(categories, map(float, probs)))
18
 
19
+ image = gr.Image(shape=(192, 192))
20
+ label = gr.Label()
21
 
22
  examples = ['dog.jpg', 'cat.jpg']
23