changed to Learner.load
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
-
learn =
|
| 6 |
|
| 7 |
labels = learn.dls.vocab
|
| 8 |
def predict(img):
|
|
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
+
learn = Learner.load('export.pkl')
|
| 6 |
|
| 7 |
labels = learn.dls.vocab
|
| 8 |
def predict(img):
|