PeterTP commited on
Commit
ea6a990
·
1 Parent(s): 02ece04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from fastai.vision.all import *
3
  import timm
4
 
5
- learn = load_learner('berry_model.pkl')
6
 
7
  #catergories = ("strawberry", "blueberry", "raspberry", "cranberry", "mulberry", "other")
8
  categories = learn.dls.vocab
 
2
  from fastai.vision.all import *
3
  import timm
4
 
5
+ learn = load_learner(Path('berry_model.pkl'))
6
 
7
  #catergories = ("strawberry", "blueberry", "raspberry", "cranberry", "mulberry", "other")
8
  categories = learn.dls.vocab