elsoori commited on
Commit
d487bcd
·
1 Parent(s): 6dffe15

updated deprecated gr.input and Label and intf arguments

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,9 +8,9 @@ def classify_image(img):
8
  pred,idx,probs = learn.predict(img)
9
  return dict(zip(categories, map(float,probs)))
10
 
11
- image = gr.inputs.Image(shape=(192,192))
12
- label = gr.outputs.Label()
13
  examples = ['grizzly.jpg', 'black.jpg', 'teddy.jpg']
14
 
15
- intf = gr.Interface(fn=classify_image, input=image, outputs=label, examples = examples)
16
  intf.launch(inline=False)
 
8
  pred,idx,probs = learn.predict(img)
9
  return dict(zip(categories, map(float,probs)))
10
 
11
+ image = gr.Image(shape=(192,192))
12
+ label = gr.Label()
13
  examples = ['grizzly.jpg', 'black.jpg', 'teddy.jpg']
14
 
15
+ intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples = examples)
16
  intf.launch(inline=False)