Spaces:
Sleeping
Sleeping
hkanumilli
commited on
Commit
•
8f20dcb
1
Parent(s):
8321645
adding application description
Browse files
app.py
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
-
# def is_cat(x): return x[0].isupper()
|
5 |
-
|
6 |
# Cell
|
7 |
learn = load_learner('resnet101model_2.pkl')
|
8 |
|
@@ -18,5 +16,5 @@ image = gr.inputs.Image(shape=(224, 224))
|
|
18 |
label = gr.outputs.Label()
|
19 |
examples = ['annas.jpeg', 'green-crowned.jpeg', 'marvelous_spatuletail.png', 'ruby-throated.jpeg', 'violetear.jpeg']
|
20 |
|
21 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
22 |
intf.launch(inline=False)
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
# Cell
|
5 |
learn = load_learner('resnet101model_2.pkl')
|
6 |
|
|
|
16 |
label = gr.outputs.Label()
|
17 |
examples = ['annas.jpeg', 'green-crowned.jpeg', 'marvelous_spatuletail.png', 'ruby-throated.jpeg', 'violetear.jpeg']
|
18 |
|
19 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, description="A Hummingbird classifier with a 90% accuracy. The following are the possible categories the model can predict: anna's, green-crowned, marvelous spatuletail, ruby-throated, violetear")
|
20 |
intf.launch(inline=False)
|