zhangxunhui commited on
Commit
d36f29b
1 Parent(s): 8d95995

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ def classify_image(img):
25
  return dict(zip(categories, map(float, probs)))
26
 
27
  # %% app.ipynb 6
28
- image = gr.inputs.Image(shape(224, 224))
29
- label = gr.outputs.Label()
30
  examples = ['Badminton.jpg', 'Cricket.jpg', 'Karate.jpg', 'Soccer.jpg', 'Swimming.jpg', 'Tennis.jpg', 'Wrestling.jpg']
31
 
32
  # %% app.ipynb 7
 
25
  return dict(zip(categories, map(float, probs)))
26
 
27
  # %% app.ipynb 6
28
+ image = gr.Image(height=224, width=224)
29
+ label = gr.Label()
30
  examples = ['Badminton.jpg', 'Cricket.jpg', 'Karate.jpg', 'Soccer.jpg', 'Swimming.jpg', 'Tennis.jpg', 'Wrestling.jpg']
31
 
32
  # %% app.ipynb 7