Spaces:
Runtime error
Runtime error
Jessica Walkenhorst
commited on
Commit
·
586ec44
1
Parent(s):
827bdd4
Remove additional examples
Browse files- app.py +2 -2
- sunflower.jpg +0 -3
- whiteclouds.jpg +0 -3
- yellowclouds.jpg +0 -3
app.py
CHANGED
@@ -14,9 +14,9 @@ def classify_image(image):
|
|
14 |
title = 'Mirror, Mirror on the Wall, am I a Duckling or a Cygnet after all?'
|
15 |
description = """Hans Christian Andersen's tale of the ugly duckling tells us about the sad youth of a cygnet which is accidentally brought up in a family of ducks and is ostrized on the account of it being different. But what if the cygnet had had a magic mirror to tell it that it had been a young swan all along? Machine learning to the rescue!"""
|
16 |
|
17 |
-
examples = ['duckling.jpg', 'cygnet.jpg'
|
18 |
|
19 |
-
article = 'This model was build using a resnet-18 architecture with weights pretrained on the ImageNet data set and fine-tuned using about 80 images of ducklings and cygnets each.\nNote that it is binary classifier and can therefore only output cygnet or duckling, "other" is not an option.
|
20 |
|
21 |
app = gr.Interface(fn=classify_image,
|
22 |
inputs=gr.components.Image(),
|
|
|
14 |
title = 'Mirror, Mirror on the Wall, am I a Duckling or a Cygnet after all?'
|
15 |
description = """Hans Christian Andersen's tale of the ugly duckling tells us about the sad youth of a cygnet which is accidentally brought up in a family of ducks and is ostrized on the account of it being different. But what if the cygnet had had a magic mirror to tell it that it had been a young swan all along? Machine learning to the rescue!"""
|
16 |
|
17 |
+
examples = ['duckling.jpg', 'cygnet.jpg']
|
18 |
|
19 |
+
article = 'This model was build using a resnet-18 architecture with weights pretrained on the ImageNet data set and fine-tuned using about 80 images of ducklings and cygnets each.\nNote that it is binary classifier and can therefore only output cygnet or duckling, "other" is not an option.'
|
20 |
|
21 |
app = gr.Interface(fn=classify_image,
|
22 |
inputs=gr.components.Image(),
|
sunflower.jpg
DELETED
Git LFS Details
|
whiteclouds.jpg
DELETED
Git LFS Details
|
yellowclouds.jpg
DELETED
Git LFS Details
|