Spaces:
Runtime error
Runtime error
Josh
commited on
Commit
•
c58b59b
1
Parent(s):
6362a59
try to fix cannot instantiate 'WindowsPath' on your system
Browse files
app.py
CHANGED
@@ -3,6 +3,10 @@ import gradio as gr
|
|
3 |
from fastai.vision.all import *
|
4 |
import skimage
|
5 |
|
|
|
|
|
|
|
|
|
6 |
learn = load_learner('export.pkl')
|
7 |
|
8 |
labels = learn.dls.vocab
|
|
|
3 |
from fastai.vision.all import *
|
4 |
import skimage
|
5 |
|
6 |
+
import pathlib
|
7 |
+
plat = platform.system()
|
8 |
+
if plat == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
9 |
+
|
10 |
learn = load_learner('export.pkl')
|
11 |
|
12 |
labels = learn.dls.vocab
|