akshaikrishna commited on
Commit
f351b51
1 Parent(s): efa30fd
Files changed (3) hide show
  1. app.py +3 -1
  2. cat.jpg +0 -0
  3. dog.jpg +0 -0
app.py CHANGED
@@ -16,8 +16,10 @@ def classify_image(img):
16
  return dict(zip(categories, map(float, probs)))
17
 
18
 
 
 
19
  image = gr.Image(height=192, width=192)
20
  label = gr.Label()
21
  # exam
22
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label)
23
  intf.launch()
 
16
  return dict(zip(categories, map(float, probs)))
17
 
18
 
19
+ examples = ["dog.jpg", "cat.jpg"]
20
+
21
  image = gr.Image(height=192, width=192)
22
  label = gr.Label()
23
  # exam
24
+ intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
25
  intf.launch()
cat.jpg ADDED
dog.jpg ADDED