Spaces:
Runtime error
Runtime error
Commit ·
f9573e3
1
Parent(s): 3130661
fix examples attempt 3
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ plt = platform.system()
|
|
| 8 |
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
| 9 |
|
| 10 |
learn = load_learner('model.pkl')
|
| 11 |
-
examples = [
|
| 12 |
|
| 13 |
labels = learn.dls.vocab
|
| 14 |
def predict(img):
|
|
|
|
| 8 |
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
| 9 |
|
| 10 |
learn = load_learner('model.pkl')
|
| 11 |
+
examples = [str(x) for x in get_image_files('images')]
|
| 12 |
|
| 13 |
labels = learn.dls.vocab
|
| 14 |
def predict(img):
|