marii commited on
Commit
8146b28
·
1 Parent(s): f4429cb
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -18,4 +18,13 @@ def predict(img):
18
 
19
  # Cell
20
  import gradio as gr
 
 
 
 
 
 
 
 
 
21
  gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
 
18
 
19
  # Cell
20
  import gradio as gr
21
+
22
+
23
+ title = "Pet Breed Classifier"
24
+ description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
25
+ article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
26
+ examples = ['siamese.jpg']
27
+ interpretation='default'
28
+ enable_queue=True
29
+
30
  gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()