Spaces:
Runtime error
Runtime error
add examples back
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def predict(img):
|
|
18 |
title = "Pet Breed Classifier"
|
19 |
description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces. Thank you to Tanishq Abraham for making this demo."
|
20 |
article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
21 |
-
|
22 |
-
examples = None
|
23 |
interpretation='default'
|
24 |
enable_queue=True
|
25 |
gr.Interface(fn=predict,inputs=gr.components.Image(shape=(512, 512)),outputs=gr.components.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation).launch(enable_queue=enable_queue)
|
|
|
18 |
title = "Pet Breed Classifier"
|
19 |
description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces. Thank you to Tanishq Abraham for making this demo."
|
20 |
article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
21 |
+
examples = ['scratch.jpg', 'doge.jpg', 'doge_weird.jpg']
|
22 |
+
# examples = None
|
23 |
interpretation='default'
|
24 |
enable_queue=True
|
25 |
gr.Interface(fn=predict,inputs=gr.components.Image(shape=(512, 512)),outputs=gr.components.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation).launch(enable_queue=enable_queue)
|