windowspath fix
Browse files
app.py
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
# AUTOGENERATED! DO NOT EDIT! File to edit: ../sedan_suv_predict.ipynb.
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
# %% auto 0
|
4 |
__all__ = ['learn', 'categories', 'image',
|
5 |
'label', 'examples', 'intf', 'classify_image']
|
6 |
|
7 |
# %% ../sedan_suv_predict.ipynb 1
|
8 |
-
from fastai.vision.all import *
|
9 |
-
import gradio as gr
|
10 |
|
11 |
# %% ../sedan_suv_predict.ipynb 3
|
12 |
learn = load_learner('sedan_suv.pkl')
|
|
|
1 |
# AUTOGENERATED! DO NOT EDIT! File to edit: ../sedan_suv_predict.ipynb.
|
2 |
|
3 |
+
import gradio as gr
|
4 |
+
from fastai.vision.all import *
|
5 |
+
import pathlib
|
6 |
+
#plt = platform.system()
|
7 |
+
pathlib.WindowsPath = pathlib.PosixPath
|
8 |
+
|
9 |
# %% auto 0
|
10 |
__all__ = ['learn', 'categories', 'image',
|
11 |
'label', 'examples', 'intf', 'classify_image']
|
12 |
|
13 |
# %% ../sedan_suv_predict.ipynb 1
|
|
|
|
|
14 |
|
15 |
# %% ../sedan_suv_predict.ipynb 3
|
16 |
learn = load_learner('sedan_suv.pkl')
|