Spaces:
Runtime error
Runtime error
Antoine Macia
commited on
Commit
·
a9e6740
1
Parent(s):
73f45fd
Fix var access
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ learn = load_learner('model.pkl')
|
|
16 |
categories = ('Door', 'Window')
|
17 |
|
18 |
def classify_image(img):
|
19 |
-
pred,idx,probs = learn.predict(
|
20 |
return dict(zip(categories, map(float, probs)))
|
21 |
|
22 |
# %% ../app.ipynb 7
|
|
|
16 |
categories = ('Door', 'Window')
|
17 |
|
18 |
def classify_image(img):
|
19 |
+
pred,idx,probs = learn.predict(img)
|
20 |
return dict(zip(categories, map(float, probs)))
|
21 |
|
22 |
# %% ../app.ipynb 7
|