Spaces:
Runtime error
Runtime error
Commit ·
1bfc568
1
Parent(s): 5f2c1c4
update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,6 @@ def is_cat(x): return x[0].isupper()
|
|
| 9 |
learn = from_pretrained_fastai('akaigraham/cat-classifier')
|
| 10 |
categories = ('Dog', 'Cat')
|
| 11 |
|
| 12 |
-
# classify image function
|
| 13 |
def classify_image(img):
|
| 14 |
pred,idx,probs = learn.predict(img)
|
| 15 |
return dict(zip(categories, map(float, probs)))
|
|
|
|
| 9 |
learn = from_pretrained_fastai('akaigraham/cat-classifier')
|
| 10 |
categories = ('Dog', 'Cat')
|
| 11 |
|
|
|
|
| 12 |
def classify_image(img):
|
| 13 |
pred,idx,probs = learn.predict(img)
|
| 14 |
return dict(zip(categories, map(float, probs)))
|