mkhojira commited on
Commit
7558946
1 Parent(s): 8204bc2

add examples

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,10 +71,10 @@ def classify_image(img):
71
 
72
  image = gr.Image(shape=(192,192))
73
  label = gr.Label()
74
- example = ['examples/acadian_flycatcher.jpeg', 'examples/pacific_loon.jpg', 'examples/yellow_throated_vireo.jpeg']
75
  title='North America Bird Classifier'
76
  description='A north america bird classifier trained on the Caltech-UCSD Birds-200-2011 with fastai.'
77
 
78
 
79
- iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, title=title,description=description)
80
  iface.launch(inline=False)
 
71
 
72
  image = gr.Image(shape=(192,192))
73
  label = gr.Label()
74
+ examples = ['examples/acadian_flycatcher.jpeg', 'examples/pacific_loon.jpg', 'examples/yellow_throated_vireo.jpeg']
75
  title='North America Bird Classifier'
76
  description='A north america bird classifier trained on the Caltech-UCSD Birds-200-2011 with fastai.'
77
 
78
 
79
+ iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, title=title,description=description, examples=examples)
80
  iface.launch(inline=False)