Update app.py
Browse files
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 = ['
|
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=
|
33 |
-
description=
|
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 |
|