Path error - Turning into An Online application

I’ve been following Jeremys third video (section where he talks about turning the model into an online application). I’ve got a couple of questions.

  • How do I correct the below error (looks like the path directory is wrong?)

  • Where is the path and the rest stored? Is it on my google drive? just wanting to conceptualise where the model is pulling the various data from as my programming level is not amazing :slight_smile: if anyone could explain that on a high level would be much appreciated.

  • Is this model still referencing the previous notebook?


FileNotFoundError Traceback (most recent call last)
in ()
1 path = Path()
----> 2 learn_inf = load_learner(path/‘export.pkl’)
3 btn_upload = widgets.FileUpload()
4 out_pl = widgets.Output()
5 lbl_pred = widgets.Label()

3 frames
/usr/local/lib/python3.7/dist-packages/torch/ in init(self, name, mode)
209 class _open_file(_opener):
210 def init(self, name, mode):
→ 211 super(_open_file, self).init(open(name, mode))
213 def exit(self, *args):

FileNotFoundError: [Errno 2] No such file or directory: ‘export.pkl’

Did you do a learn.export? Learner, Metrics, and Basic Callbacks | fastai

That will create the export.pkl file you are looking for and it will put it in learn.path or possibly learn.dls.path by default