Spaces:
Sleeping
Sleeping
Commit ·
e45e026
1
Parent(s): c76b17e
Added Panda bear
Browse files- app.py +1 -1
- beartector.pkl +2 -2
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import gradio as gr
|
|
| 6 |
learn = load_learner('beartector.pkl')
|
| 7 |
|
| 8 |
#|export
|
| 9 |
-
categories = ('Black Bear', 'Grizzly Bear', 'Koala Bear', 'Polar Bear', 'Teddy Bear')
|
| 10 |
def classify_image(img):
|
| 11 |
pred,idx,probs = learn.predict(img)
|
| 12 |
return dict(zip(categories, map(float,probs)))
|
|
|
|
| 6 |
learn = load_learner('beartector.pkl')
|
| 7 |
|
| 8 |
#|export
|
| 9 |
+
categories = ('Black Bear', 'Grizzly Bear', 'Koala Bear', 'Panda Bear', 'Polar Bear', 'Teddy Bear')
|
| 10 |
def classify_image(img):
|
| 11 |
pred,idx,probs = learn.predict(img)
|
| 12 |
return dict(zip(categories, map(float,probs)))
|
beartector.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef8ee4b8aee49d3493bcd6ec4cfac8a523495aaa602773846d61e01a3394a820
|
| 3 |
+
size 87493615
|