ananthvk commited on
Commit
4e51fae
·
1 Parent(s): a4e002d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def classify_fruit(img):
10
  pred, idx, probs = learn.predict(img)
11
  return dict(zip(categories, map(float, probs)))
12
 
13
- image = gr.Image(width=224, height=224)
14
  label = gr.Label()
15
 
16
  inter = gr.Interface(fn=classify_fruit, inputs=image, outputs=label)
 
10
  pred, idx, probs = learn.predict(img)
11
  return dict(zip(categories, map(float, probs)))
12
 
13
+ image = gr.Image(width=224, height=224, type="pil")
14
  label = gr.Label()
15
 
16
  inter = gr.Interface(fn=classify_fruit, inputs=image, outputs=label)