radatia commited on
Commit
b33a744
·
verified ·
1 Parent(s): d26be9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -16,21 +16,20 @@ def predict(img):
16
  title = "Pet Breed Classifier"
17
  description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
18
  article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
19
- examples = ['siamese.jpg']
20
  interpretation='default'
21
  enable_queue=True
22
 
23
  image = gr.Image(height=192, width=192)
24
  label = gr.Label(num_top_classes=3)
25
- examples = ['dog.jpeg', 'cat.jpeg', 'dogcat.jpeg']
26
 
27
  intf = gr.Interface(
28
  fn=predict,
29
  inputs=image,
30
  outputs=label,
31
  examples=examples,
32
- title='Cat or Dog Classifier',
33
- description='This is a cat or dog classifier. Upload an image of a cat or dog and it will predict which it is.'
34
  )
35
  intf.launch()
36
 
 
16
  title = "Pet Breed Classifier"
17
  description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
18
  article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
19
+ examples = ['dog.jpeg', 'cat.jpeg', 'dogcat.jpeg']
20
  interpretation='default'
21
  enable_queue=True
22
 
23
  image = gr.Image(height=192, width=192)
24
  label = gr.Label(num_top_classes=3)
 
25
 
26
  intf = gr.Interface(
27
  fn=predict,
28
  inputs=image,
29
  outputs=label,
30
  examples=examples,
31
+ title=title,
32
+ description=description
33
  )
34
  intf.launch()
35