Spaces:
Sleeping
Sleeping
Commit ·
3e9b879
1
Parent(s): 230d372
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from fastai.vision.all import *
|
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
learn = load_learner('export.pkl')
|
| 6 |
-
|
| 7 |
labels = learn.dls.vocab
|
| 8 |
def predict(img):
|
| 9 |
img = PILImage.create(img)
|
|
|
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
learn = load_learner('export.pkl')
|
| 6 |
+
def is_cat(x): return x[0].isupper()
|
| 7 |
labels = learn.dls.vocab
|
| 8 |
def predict(img):
|
| 9 |
img = PILImage.create(img)
|