Spaces:
Build error
Build error
Harald commited on
Commit ·
aae67a0
1
Parent(s): e953c0a
Updated Path
Browse files
app.py
CHANGED
|
@@ -1,11 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.vision.all import *
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
learn = load_learner('export.pkl')
|
| 9 |
categories = ('Black', 'Grizzly', 'Teddy')
|
| 10 |
|
| 11 |
def classify_image(img):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from fastai.vision.all import *
|
| 3 |
+
from pathlib import Path
|
| 4 |
|
| 5 |
+
model_path = Path('export.pkl')
|
| 6 |
+
learn = load_learner(model_path)
|
|
|
|
|
|
|
| 7 |
categories = ('Black', 'Grizzly', 'Teddy')
|
| 8 |
|
| 9 |
def classify_image(img):
|