File size: 655 Bytes
3f7b352
 
 
eb2425f
 
3f7b352
 
eb2425f
 
 
 
3f7b352
1
2
3
4
5
6
7
8
9
10
11
12
13
from fastai.vision.all import *
import gradio as gr

#image = gr.inputs.Image(shape=(192, 192))
#label = gr.outputs.Label(num_top_classes=5)
examples = ['carolina.jpg','abb.jpg','lady.jpg','mantis.jpg','monarch.jpg','western striped cucumber.jpg','carolina2.jpg', 'large milkweed bug.jpg', 'twice-stabbed.jpg', 'viceroy.jpg', 'lubber.jpg', 'GrashopperAulocaraElliotti958.webp']

intf = gr.load(src='models',name='flobbit/ohbugger2k/',
               examples=examples,
               title="Oh! Bugger! 2k", description="Trained on 130133 images over 2000 species using ResNet18. Provide an image or select from one below."
               )
intf.launch()