popcornking commited on
Commit
0f16015
·
verified ·
1 Parent(s): f94a8da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,7 +22,9 @@ 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=image, outputs=label, examples=examples)
 
 
26
  intf.launch(inline=False)
27
 
28
  # def greet(name):
 
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=[‘dog.jpg’, ‘cat.jpg’])
26
+
27
+ # intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
28
  intf.launch(inline=False)
29
 
30
  # def greet(name):