File size: 859 Bytes
5b249e2
 
 
 
2b0b641
5b249e2
 
 
 
7764758
5b249e2
 
 
9f5f65e
6f3c6f0
 
5b249e2
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from fastai.vision.all import *
import gradio as gr

#image = gr.inputs.Image(shape=(192, 192))
label = gr.Label(num_top_classes=3)
examples = ['Papilio glaucus.jpg','Papilio palamedes.jpg','Protographium marcellus.jpg','Papilio multicaudata.jpg',
            'Parides photinus.jpg','Battus philenor.jpg',
            'Papilio cresphontes.jpg','Parnassius smintheus.jpg','Papilio thoas.jpg']

title="FlutterBy"
description="Detects the most common North American swallowtail and cattleheart butterflies. Provide an image or select from one below. Best results will come from a full frame posed shot. Trained on 8577 images over 51 species using ResNet50."

intf = gr.load(src='models',name='flobbit/flutterby/',
               examples=examples,
               title=title, description=description,
               outputs=label
               )
intf.launch()