Mahbubur commited on
Commit
8f44301
1 Parent(s): 1c10c00

input issue

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ def classify_img(img):
11
  preds, idx, probs = learn.predict(img)
12
  return dict(zip(categories, map(float, probs)))
13
 
14
- image = gr.input.Image(shape=(192, 192))
15
- label = gr.output.Label()
16
  examples = ['dog.jpg', 'cat.jpg']
17
 
18
  iface = gr.Interface(fn=classify_img, inputs=image, outputs=label, examples=examples)
 
11
  preds, idx, probs = learn.predict(img)
12
  return dict(zip(categories, map(float, probs)))
13
 
14
+ image = gr.Image(shape=(192, 192))
15
+ label = gr.Label()
16
  examples = ['dog.jpg', 'cat.jpg']
17
 
18
  iface = gr.Interface(fn=classify_img, inputs=image, outputs=label, examples=examples)