Dstd90 commited on
Commit
2d43b42
·
1 Parent(s): 0d48a90
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  from fastai.vision.all import load_learner
3
 
4
- import pathlib
5
- temp = pathlib.PosixPath
6
- pathlib.PosixPath = pathlib.WindowsPath
7
 
8
  shoe_labels = (
9
  'Army boots',
@@ -44,7 +44,7 @@ shoe_labels = (
44
  'Wellington boots'
45
  )
46
 
47
- model = load_learner('models/shoes-recognizer-v4.pkl')
48
 
49
  def recognize_image(image):
50
  pred, idx, probs = model.predict(image)
 
1
  import gradio as gr
2
  from fastai.vision.all import load_learner
3
 
4
+ # import pathlib
5
+ # temp = pathlib.PosixPath
6
+ # pathlib.PosixPath = pathlib.WindowsPath
7
 
8
  shoe_labels = (
9
  'Army boots',
 
44
  'Wellington boots'
45
  )
46
 
47
+ model = load_learner('shoes-recognizer-v4.pkl')
48
 
49
  def recognize_image(image):
50
  pred, idx, probs = model.predict(image)