Update app.py
Browse files
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 |
-
|
|
|
|
|
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 |
|