Matej commited on
Commit ·
c2f2760
1
Parent(s): 22824ef
Add examples
Browse files- app.py +2 -2
- examples/German-Shepherd.jpg +0 -0
- examples/border_collie.jpg +0 -0
- examples/staffordshire-bull-terrier-puppy.jpg +0 -0
app.py
CHANGED
|
@@ -12,7 +12,7 @@ model_info = """
|
|
| 12 |
|
| 13 |
"""
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
def preprocess(image):
|
| 18 |
print("before resize", image.shape)
|
|
@@ -40,7 +40,7 @@ iface = gr.Interface(
|
|
| 40 |
outputs=[gr.Label(num_top_classes=5)],
|
| 41 |
title="Dog Vision Mini Project",
|
| 42 |
description=f"{model_info}\n",
|
| 43 |
-
|
| 44 |
)
|
| 45 |
|
| 46 |
iface.launch()
|
|
|
|
| 12 |
|
| 13 |
"""
|
| 14 |
|
| 15 |
+
examples = [["./examples/border_collie.jpg"], ["./examples/German-Shepherd.jpg"], ["./examples/staffordshire-bull-terrier-puppy.jpg"]]
|
| 16 |
|
| 17 |
def preprocess(image):
|
| 18 |
print("before resize", image.shape)
|
|
|
|
| 40 |
outputs=[gr.Label(num_top_classes=5)],
|
| 41 |
title="Dog Vision Mini Project",
|
| 42 |
description=f"{model_info}\n",
|
| 43 |
+
examples=examples
|
| 44 |
)
|
| 45 |
|
| 46 |
iface.launch()
|
examples/German-Shepherd.jpg
ADDED
|
examples/border_collie.jpg
ADDED
|
examples/staffordshire-bull-terrier-puppy.jpg
ADDED
|