Shuo Wang
commited on
Commit
•
60a97af
1
Parent(s):
1b29a2b
fix cannot instantiate
Browse files
app.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
|
|
|
|
|
|
3 |
|
4 |
learn = load_learner('export.pkl')
|
5 |
labels = learn.dls.vocab
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
+
import pathlib
|
4 |
+
plt = platform.system()
|
5 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
6 |
|
7 |
learn = load_learner('export.pkl')
|
8 |
labels = learn.dls.vocab
|