lmyrick29 commited on
Commit
ba3d664
·
verified ·
1 Parent(s): 93824c1

Update app.py

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