Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,9 @@ from fastai.vision.all import *
|
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
|
| 6 |
-
|
| 7 |
-
from huggingface_hub import from_pretrained_fastai
|
| 8 |
-
learn = from_pretrained_fastai("devdatanalytics/commonbean")
|
| 9 |
|
| 10 |
labels = learn.dls.vocab
|
| 11 |
def predict(img):
|
|
|
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
|
| 6 |
+
learn = load_learner('model.pkl')
|
| 7 |
+
#from huggingface_hub import from_pretrained_fastai
|
| 8 |
+
#learn = from_pretrained_fastai("devdatanalytics/commonbean")
|
| 9 |
|
| 10 |
labels = learn.dls.vocab
|
| 11 |
def predict(img):
|