JuanHaunted commited on
Commit
e1b0236
·
1 Parent(s): a5ff6a5

Include title to app

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,9 +32,10 @@ def classify_image(img):
32
  return dict(zip(species, map(float, probs)))
33
 
34
  # %% app.ipynb 7
 
35
  image = gr.components.Image(shape=(192, 192))
36
  label = gr.components.Label()
37
  examples = ['lead.webp', 'geo.jpg', 'delphinae.jpg', 'jardini.jpg', 'tzacatl.jfif', 'micro.jfif']
38
 
39
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
40
  intf.launch(inline=False)
 
32
  return dict(zip(species, map(float, probs)))
33
 
34
  # %% app.ipynb 7
35
+ title = 'Colombia - Antioquia Hummingbird Species Classifier'
36
  image = gr.components.Image(shape=(192, 192))
37
  label = gr.components.Label()
38
  examples = ['lead.webp', 'geo.jpg', 'delphinae.jpg', 'jardini.jpg', 'tzacatl.jfif', 'micro.jfif']
39
 
40
+ intf = gr.Interface(fn=classify_image, title=title, inputs=image, outputs=label, examples=examples)
41
  intf.launch(inline=False)