vesteinn commited on
Commit
b4abc27
1 Parent(s): 2ad4686

Added examples

Browse files
Files changed (5) hide show
  1. app.py +3 -1
  2. bj.jpg +0 -0
  3. duckly.jpg +0 -0
  4. some.jpg +0 -0
  5. turdus.jpg +0 -0
app.py CHANGED
@@ -76,11 +76,13 @@ def find_best_matches(image):
76
  label = ALL_LABELS[idx]
77
  return label
78
 
 
79
 
80
  gr.Interface(fn=find_best_matches,
81
  inputs=[
82
- gr.inputs.Image(label="Image to classify", optional=True),
83
  ],
 
84
  theme="grass",
85
  outputs=gr.outputs.Label(), enable_queue=True, title="North American Bird Classifier",
86
  description="This application can classify North American Birds.").launch()
 
76
  label = ALL_LABELS[idx]
77
  return label
78
 
79
+ examples=[['bj.jpg'],['duckly.jpg'],['bj.jpg'],['turdus.jpg']]
80
 
81
  gr.Interface(fn=find_best_matches,
82
  inputs=[
83
+ gr.inputs.Image(label="Image to classify", optional=False),
84
  ],
85
+ examples=examples,
86
  theme="grass",
87
  outputs=gr.outputs.Label(), enable_queue=True, title="North American Bird Classifier",
88
  description="This application can classify North American Birds.").launch()
bj.jpg ADDED
duckly.jpg ADDED
some.jpg ADDED
turdus.jpg ADDED