popcornking commited on
Commit
050c15c
·
verified ·
1 Parent(s): 254660a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -20,9 +20,11 @@ def classify_image(img):
20
  # Cell
21
  # image = gr.inputs.Image(shape=(192, 192))
22
  # label = gr.outputs.Label()
 
 
23
  examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
24
 
25
- intf = gr.Interface(fn=classify_image,inputs=gr.Image(type='pil'),outputs=gr.Label(),examples=examples)
26
 
27
  # intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
28
  intf.launch(inline=False)
 
20
  # Cell
21
  # image = gr.inputs.Image(shape=(192, 192))
22
  # label = gr.outputs.Label()
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=gr.Image(),outputs=gr.Label(),examples=examples)
28
 
29
  # intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
30
  intf.launch(inline=False)