faishaltm commited on
Commit
3edd48b
·
1 Parent(s): 2c51feb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,9 +6,11 @@ import pathlib
6
 
7
 
8
  # Ensure that the correct Path object is used here based on the OS
9
- pathlib.PosixPath = pathlib.WindowsPath
10
 
11
- learn = load_learner('export.pkl')
 
 
12
 
13
  categories = ('black', 'grizzly', 'teddy')
14
 
 
6
 
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