jojortz commited on
Commit
4dbfaaa
1 Parent(s): c844dbd

update gradio Image and Label

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ def classify_image(img):
16
  return dict(zip(categories, map(float, probs)))
17
 
18
 
19
- image = gr.inputs.Image(shape(192, 192))
20
- label = gr.outputs.Label()
21
  examples = ["dog.jpg", "cat.jpg", "dunno.jpg"]
22
 
23
 
 
16
  return dict(zip(categories, map(float, probs)))
17
 
18
 
19
+ image = gr.Image(height=192, width=192)
20
+ label = gr.Label()
21
  examples = ["dog.jpg", "cat.jpg", "dunno.jpg"]
22
 
23