Spaces:
Sleeping
Sleeping
socd06
commited on
Commit
·
64e76e2
1
Parent(s):
33bfc8e
handle linux path
Browse files
app.py
CHANGED
|
@@ -4,8 +4,10 @@ from fastai.vision.all import *
|
|
| 4 |
import gradio as gr
|
| 5 |
from gradio.components import Image
|
| 6 |
from gradio import Label
|
|
|
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
labels = learner.dls.vocab
|
| 10 |
|
| 11 |
|
|
|
|
| 4 |
import gradio as gr
|
| 5 |
from gradio.components import Image
|
| 6 |
from gradio import Label
|
| 7 |
+
from pathlib import Path
|
| 8 |
|
| 9 |
+
model_path = Path("model.pkl")
|
| 10 |
+
learner = load_learner(model_path)
|
| 11 |
labels = learner.dls.vocab
|
| 12 |
|
| 13 |
|