sarath2803 commited on
Commit
9a8529b
·
verified ·
1 Parent(s): e00fcb7

Update app.py

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