Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,10 @@ def predict(img):
|
|
12 |
examples = ['/kaggle/input/butterfly-images40-species/test/ADONIS/1.jpg',
|
13 |
'/kaggle/input/butterfly-images40-species/test/AFRICAN GIANT SWALLOWTAIL/2.jpg',
|
14 |
'/kaggle/input/butterfly-images40-species/test/AMERICAN SNOOT/3.jpg']
|
|
|
|
|
|
|
|
|
15 |
image = gr.Image()
|
16 |
label = gr.Label(num_top_classes = 3)
|
17 |
-
gr.Interface(fn=predict, inputs=image, outputs=label, examples = examples).launch(share=True)
|
|
|
12 |
examples = ['/kaggle/input/butterfly-images40-species/test/ADONIS/1.jpg',
|
13 |
'/kaggle/input/butterfly-images40-species/test/AFRICAN GIANT SWALLOWTAIL/2.jpg',
|
14 |
'/kaggle/input/butterfly-images40-species/test/AMERICAN SNOOT/3.jpg']
|
15 |
+
title = "ButterFly Image Classifier Classifier 🦋"
|
16 |
+
description = "A ResNet18 feature extractor computer vision model to classify images of butterfly in 100 classes!."
|
17 |
+
article = "[Chris Olande.](https://github.com/Chrisolande)"
|
18 |
+
|
19 |
image = gr.Image()
|
20 |
label = gr.Label(num_top_classes = 3)
|
21 |
+
gr.Interface(fn=predict, inputs=image, outputs=label, examples = examples, title = title, description = ).launch(share=True)
|