Spaces:
Sleeping
Sleeping
app fix path
Browse files
app.py
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
learn = load_learner("export.pkl" )
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
+
import pathlib
|
4 |
+
|
5 |
+
|
6 |
+
plt = platform.system()
|
7 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
8 |
+
|
9 |
|
10 |
|
11 |
learn = load_learner("export.pkl" )
|