Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ from fastai.vision.all import *
|
|
| 3 |
import pathlib
|
| 4 |
plt = platform.system()
|
| 5 |
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
| 6 |
-
learn = load_learner('model.pkl')
|
| 7 |
|
| 8 |
def get_x(r):
|
| 9 |
return r['name']
|
|
@@ -12,6 +11,8 @@ def get_x(r):
|
|
| 12 |
def get_y(r):
|
| 13 |
return r['labels'].split(' ')
|
| 14 |
|
|
|
|
|
|
|
| 15 |
labels = learner.dls.vocab
|
| 16 |
|
| 17 |
def bla(predicted):
|
|
|
|
| 3 |
import pathlib
|
| 4 |
plt = platform.system()
|
| 5 |
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
|
|
|
| 6 |
|
| 7 |
def get_x(r):
|
| 8 |
return r['name']
|
|
|
|
| 11 |
def get_y(r):
|
| 12 |
return r['labels'].split(' ')
|
| 13 |
|
| 14 |
+
learn = load_learner('model.pkl')
|
| 15 |
+
|
| 16 |
labels = learner.dls.vocab
|
| 17 |
|
| 18 |
def bla(predicted):
|