test posix
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import pathlib
|
|
5 |
|
6 |
def is_cat(x): return x[0].isupper()
|
7 |
|
8 |
-
temp = pathlib.PosixPath
|
9 |
-
pathlib.PosixPath = pathlib.WindowsPath
|
10 |
learn=load_learner('model.pkl')
|
11 |
-
pathlib.PosixPath=temp
|
12 |
|
13 |
categories = ('Dog', 'Cat')
|
14 |
def classify_image(img):
|
|
|
5 |
|
6 |
def is_cat(x): return x[0].isupper()
|
7 |
|
8 |
+
#temp = pathlib.PosixPath
|
9 |
+
#pathlib.PosixPath = pathlib.WindowsPath
|
10 |
learn=load_learner('model.pkl')
|
11 |
+
#pathlib.PosixPath=temp
|
12 |
|
13 |
categories = ('Dog', 'Cat')
|
14 |
def classify_image(img):
|