Spaces:
Sleeping
Sleeping
windowspath error fix 3
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ from fastai.vision.all import *
|
|
4 |
|
5 |
#Fix for the WindowsPath error
|
6 |
import pickle
|
7 |
-
|
8 |
plt = platform.system()
|
9 |
-
if plt == '
|
10 |
|
11 |
|
12 |
learn = load_learner('export.pkl')
|
|
|
4 |
|
5 |
#Fix for the WindowsPath error
|
6 |
import pickle
|
7 |
+
import pathlib
|
8 |
plt = platform.system()
|
9 |
+
if plt == 'Posix': pathlib.WindowsPath = pathlib.PosixPath
|
10 |
|
11 |
|
12 |
learn = load_learner('export.pkl')
|