kritarth3 commited on
Commit
04a4432
·
1 Parent(s): 73fb83a

windowspath error fix 2

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -3,9 +3,11 @@ from fastai.vision.all import *
3
  #import skimage
4
 
5
  #Fix for the WindowsPath error
6
- import pathlib
 
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