Zaidd commited on
Commit
75ef911
·
1 Parent(s): 3c33e1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,8 +1,9 @@
1
  from fastai.vision.all import *
2
  import gradio as gr
 
3
 
4
  categories = ('Man', 'Woman')
5
- learner = load_learner('export.pkl')
6
 
7
 
8
  def classify_img(img):
 
1
  from fastai.vision.all import *
2
  import gradio as gr
3
+ from pathlib import Path
4
 
5
  categories = ('Man', 'Woman')
6
+ learner = load_learner(Path('export.pkl'))
7
 
8
 
9
  def classify_img(img):