faishaltm commited on
Commit
18c7112
·
1 Parent(s): 3edd48b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,10 +7,10 @@ import pathlib
7
 
8
  # Ensure that the correct Path object is used here based on the OS
9
  # pathlib.PosixPath = pathlib.WindowsPath
10
-
11
- path = Path()
12
-
13
- learn = load_learner(path/'export.pkl')
14
 
15
  categories = ('black', 'grizzly', 'teddy')
16
 
 
7
 
8
  # Ensure that the correct Path object is used here based on the OS
9
  # pathlib.PosixPath = pathlib.WindowsPath
10
+ # path = Path()
11
+ model_path = str(Path('export.pkl'))
12
+ learn = load_learner(model_path)
13
+ # learn = load_learner(path/'export.pkl')
14
 
15
  categories = ('black', 'grizzly', 'teddy')
16