tunglinwu commited on
Commit
74c54eb
·
verified ·
1 Parent(s): 6a2fe46

Update app.py

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