Mohammed Albrayh commited on
Commit
dba80eb
·
1 Parent(s): 0cd63b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from fastai.vision.all import *
2
 
3
  #Windows fix
4
  import pathlib
5
- temp = pathlib.PosixPath
6
- pathlib.PosixPath = pathlib.WindowsPath
7
 
8
 
9
  learn = load_learner('SaudiLandmarkClassifier.pkl')
 
2
 
3
  #Windows fix
4
  import pathlib
5
+ plt = platform.system()
6
+ if plt == 'Windows': pathlib.PosixPath = pathlib.WindowsPath
7
 
8
 
9
  learn = load_learner('SaudiLandmarkClassifier.pkl')