Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from fastai.learner import load_learner
|
|
5 |
learn = load_learner('model.pkl')
|
6 |
|
7 |
labels = learn.dls.vocab
|
8 |
-
|
9 |
|
10 |
def predict(img):
|
11 |
img = PILImage.create(img)
|
|
|
5 |
learn = load_learner('model.pkl')
|
6 |
|
7 |
labels = learn.dls.vocab
|
8 |
+
def is_cat(x): return x[0].isupper()
|
9 |
|
10 |
def predict(img):
|
11 |
img = PILImage.create(img)
|