Spaces:
Sleeping
Sleeping
langurmonkey commited on
Back to load_learner.
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from fastai.vision.all import *
|
|
| 3 |
|
| 4 |
def is_cat(x): return x[0].isupper()
|
| 5 |
|
| 6 |
-
learn =
|
| 7 |
|
| 8 |
categories = ('Dog', 'Cat')
|
| 9 |
def classify_image(img):
|
|
|
|
| 3 |
|
| 4 |
def is_cat(x): return x[0].isupper()
|
| 5 |
|
| 6 |
+
learn = load_learner('model.pkl')
|
| 7 |
|
| 8 |
categories = ('Dog', 'Cat')
|
| 9 |
def classify_image(img):
|