Commit
•
daeae8e
1
Parent(s):
52febdf
Testing without the windows/linux stuff
Browse files
app.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
-
import pathlib
|
4 |
-
from fastbook import *
|
5 |
from fastai.vision.widgets import *
|
6 |
from fastai.vision.all import *
|
7 |
|
8 |
|
9 |
# Load the model. "PosixPath" is something with windows/linux, I dont know really.
|
10 |
-
temp = pathlib.PosixPath
|
11 |
-
pathlib.PosixPath = pathlib.WindowsPath
|
12 |
learn = load_learner('model.pkl') # Load the model itself
|
13 |
-
pathlib.PosixPath = temp
|
14 |
categories = learn.dls.vocab # Get the list of labels from the model
|
15 |
|
16 |
# Load the list of trash-sorting, use the items as index.
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
+
# import pathlib
|
4 |
+
# from fastbook import *
|
5 |
from fastai.vision.widgets import *
|
6 |
from fastai.vision.all import *
|
7 |
|
8 |
|
9 |
# Load the model. "PosixPath" is something with windows/linux, I dont know really.
|
10 |
+
# temp = pathlib.PosixPath
|
11 |
+
# pathlib.PosixPath = pathlib.WindowsPath
|
12 |
learn = load_learner('model.pkl') # Load the model itself
|
13 |
+
# pathlib.PosixPath = temp
|
14 |
categories = learn.dls.vocab # Get the list of labels from the model
|
15 |
|
16 |
# Load the list of trash-sorting, use the items as index.
|