Spaces:
Runtime error
Runtime error
Commit
·
23bd1da
1
Parent(s):
464a749
fixed pathlib
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from fastai.vision.all import *
|
|
| 3 |
import skimage
|
| 4 |
import pathlib
|
| 5 |
plt = platform.system()
|
| 6 |
-
if plt == 'Windows': pathlib.
|
| 7 |
learn = load_learner('export.pkl')
|
| 8 |
|
| 9 |
labels = learn.dls.vocab
|
|
|
|
| 3 |
import skimage
|
| 4 |
import pathlib
|
| 5 |
plt = platform.system()
|
| 6 |
+
if plt == 'Windows': pathlib.WindowsPath = pathlib.PosixPath
|
| 7 |
learn = load_learner('export.pkl')
|
| 8 |
|
| 9 |
labels = learn.dls.vocab
|