Spaces:
Build error
Build error
Mason Grimshaw commited on
Commit ·
758d3f9
1
Parent(s): 1ddeea0
adding debug statements for function
Browse files
app.py
CHANGED
|
@@ -62,6 +62,9 @@ categories = new_categories
|
|
| 62 |
def classify_image(img):
|
| 63 |
img = PILImage.create(img).resize((192, 192))
|
| 64 |
pred,idx,probs = learn.predict(img)
|
|
|
|
|
|
|
|
|
|
| 65 |
return dict(zip(categories, map(float,probs)))
|
| 66 |
|
| 67 |
# %% ../app.ipynb 12
|
|
|
|
| 62 |
def classify_image(img):
|
| 63 |
img = PILImage.create(img).resize((192, 192))
|
| 64 |
pred,idx,probs = learn.predict(img)
|
| 65 |
+
|
| 66 |
+
print(pred, idx, probs)
|
| 67 |
+
|
| 68 |
return dict(zip(categories, map(float,probs)))
|
| 69 |
|
| 70 |
# %% ../app.ipynb 12
|