Spaces:
Sleeping
Sleeping
xerxes666666
commited on
Commit
•
9590e84
1
Parent(s):
456ae73
added debugging for windows system and posixpath
Browse files
app.py
CHANGED
@@ -2,6 +2,10 @@ import gradio as gr
|
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
|
|
|
|
|
|
|
|
|
5 |
learn = load_learner('export.pkl')
|
6 |
labels = learn.dls.vocab
|
7 |
def predict(img):
|
|
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
|
5 |
+
import pathlib
|
6 |
+
plt = platform.system()
|
7 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
8 |
+
|
9 |
learn = load_learner('export.pkl')
|
10 |
labels = learn.dls.vocab
|
11 |
def predict(img):
|