Spaces:
Sleeping
Sleeping
dashelruiz
commited on
Commit
·
615465f
1
Parent(s):
b3ed987
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
|
|
|
|
|
|
|
|
3 |
|
4 |
learn = load_learner('export.pkl')
|
5 |
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
+
import pathlib
|
4 |
+
plt = platform.system()
|
5 |
+
|
6 |
+
if plt != 'Windows': pathlib.WindowsPath = pathlib.PosixPath
|
7 |
|
8 |
learn = load_learner('export.pkl')
|
9 |
|