Arman Keresh commited on
Commit
7b48a5f
1 Parent(s): ce042fb

Add pathlib 2

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ from fastai.vision.all import *
6
  plt = platform.system()
7
  if plt == "Windows":
8
  pathlib.PosixPath = pathlib.WindowsPath
 
 
9
 
10
  learn = load_learner("model.pkl")
11
 
 
6
  plt = platform.system()
7
  if plt == "Windows":
8
  pathlib.PosixPath = pathlib.WindowsPath
9
+ elif plt == "Linux":
10
+ pathlib.WindowsPath = pathlib.PosixPath
11
 
12
  learn = load_learner("model.pkl")
13