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