Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,10 @@ def predict(image, model_name):
|
|
36 |
def create_interface():
|
37 |
models = get_birder_classification_models()
|
38 |
|
39 |
-
|
40 |
-
"Common myna.jpeg",
|
41 |
-
"Eurasian hoopoe.jpeg",
|
42 |
-
"Grey heron.jpeg",
|
43 |
]
|
44 |
|
45 |
# Create interface
|
@@ -55,7 +55,7 @@ def create_interface():
|
|
55 |
),
|
56 |
],
|
57 |
outputs=gr.Label(num_top_classes=3),
|
58 |
-
examples=
|
59 |
title="Birder Image Classification",
|
60 |
description="Select a model and upload an image or use one of the examples to get bird species predictions.",
|
61 |
)
|
|
|
36 |
def create_interface():
|
37 |
models = get_birder_classification_models()
|
38 |
|
39 |
+
examples = [
|
40 |
+
["Common myna.jpeg", "mvit_v2_t_il-all"],
|
41 |
+
["Eurasian hoopoe.jpeg", "xcit_nano12_p16_il-common"],
|
42 |
+
["Grey heron.jpeg", "davit_tiny_il-all"],
|
43 |
]
|
44 |
|
45 |
# Create interface
|
|
|
55 |
),
|
56 |
],
|
57 |
outputs=gr.Label(num_top_classes=3),
|
58 |
+
examples=examples,
|
59 |
title="Birder Image Classification",
|
60 |
description="Select a model and upload an image or use one of the examples to get bird species predictions.",
|
61 |
)
|