Spaces:
Runtime error
Runtime error
Mohammed Albrayh
commited on
Commit
·
dba80eb
1
Parent(s):
0cd63b1
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ from fastai.vision.all import *
|
|
| 2 |
|
| 3 |
#Windows fix
|
| 4 |
import pathlib
|
| 5 |
-
|
| 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')
|