Spaces:
Build error
Build error
path fix
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import fastai.vision.all as faiv
|
2 |
-
import pathlib
|
3 |
from pathlib import Path
|
4 |
import gradio as gr
|
5 |
|
6 |
# make this work on Windows
|
7 |
-
temp = pathlib.PosixPath
|
8 |
-
pathlib.PosixPath = pathlib.WindowsPath
|
9 |
|
10 |
# load model
|
11 |
learn = faiv.load_learner('aih_model.pkl')
|
|
|
1 |
import fastai.vision.all as faiv
|
2 |
+
# import pathlib
|
3 |
from pathlib import Path
|
4 |
import gradio as gr
|
5 |
|
6 |
# make this work on Windows
|
7 |
+
#temp = pathlib.PosixPath
|
8 |
+
#pathlib.PosixPath = pathlib.WindowsPath
|
9 |
|
10 |
# load model
|
11 |
learn = faiv.load_learner('aih_model.pkl')
|