Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def predict(image):
|
|
| 17 |
|
| 18 |
title = "Snail, snake, slug Classifier"
|
| 19 |
description = f"""<h1> Slug, snake or snail<h1>
|
| 20 |
-
<p>A
|
| 21 |
examples = ['330px-Orange_slug.jpg', 'Green_Snakes.jpg', 'Helix_pomatia_002.JPG']
|
| 22 |
|
| 23 |
|
|
@@ -29,7 +29,7 @@ enable_queue=True
|
|
| 29 |
gr.Interface(
|
| 30 |
predict,
|
| 31 |
inputs=gr.components.Image(label="candidate", type="filepath"),
|
| 32 |
-
outputs=gr.components.Label(num_top_classes=
|
| 33 |
title=title,
|
| 34 |
examples=examples,
|
| 35 |
description=description,
|
|
|
|
| 17 |
|
| 18 |
title = "Snail, snake, slug Classifier"
|
| 19 |
description = f"""<h1> Slug, snake or snail<h1>
|
| 20 |
+
<p>A classifier trained on about 300 images. Created as a demo for Gradio and HuggingFace Spaces."""
|
| 21 |
examples = ['330px-Orange_slug.jpg', 'Green_Snakes.jpg', 'Helix_pomatia_002.JPG']
|
| 22 |
|
| 23 |
|
|
|
|
| 29 |
gr.Interface(
|
| 30 |
predict,
|
| 31 |
inputs=gr.components.Image(label="candidate", type="filepath"),
|
| 32 |
+
outputs=gr.components.Label(num_top_classes=4),
|
| 33 |
title=title,
|
| 34 |
examples=examples,
|
| 35 |
description=description,
|