Nurbek-web
commited on
Commit
•
e00f5f2
1
Parent(s):
d56f844
pathlib deprecated
Browse files
app.py
CHANGED
@@ -3,7 +3,10 @@ from fastai.vision.all import *
|
|
3 |
from fastbook import *
|
4 |
from fastai.vision.widgets import *
|
5 |
import gradio as gr
|
|
|
6 |
|
|
|
|
|
7 |
|
8 |
learn_inf = load_learner('export.pkl')
|
9 |
|
|
|
3 |
from fastbook import *
|
4 |
from fastai.vision.widgets import *
|
5 |
import gradio as gr
|
6 |
+
import pathlib
|
7 |
|
8 |
+
plt = platform.system()
|
9 |
+
if plt == 'Windows': pathlib.PosixPath = pathlib.WindowsPath
|
10 |
|
11 |
learn_inf = load_learner('export.pkl')
|
12 |
|