Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
-
#image = gr.inputs.Image(shape=(192, 192))
|
5 |
-
#label = gr.outputs.Label(num_top_classes=5)
|
6 |
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']
|
7 |
|
8 |
intf = gr.load(src='models',name='flobbit/ohbugger2k/',
|
9 |
-
|
10 |
title="Oh! Bugger! 2k", description="Trained on 130133 images over 2000 North American species using ResNet18. Provide an image or select from one below."
|
11 |
)
|
12 |
intf.launch()
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
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']
|
5 |
|
6 |
intf = gr.load(src='models',name='flobbit/ohbugger2k/',
|
7 |
+
examples=examples,
|
8 |
title="Oh! Bugger! 2k", description="Trained on 130133 images over 2000 North American species using ResNet18. Provide an image or select from one below."
|
9 |
)
|
10 |
intf.launch()
|