Spaces:
Sleeping
Sleeping
fixed a parantheses
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ learn = load_learner('model.pkl')
|
|
| 16 |
categories = ('blanched hazelnut', 'walnut kernel')
|
| 17 |
def classify_image(img):
|
| 18 |
pred, idx, probs = learn.predict(img)
|
| 19 |
-
return dict(zip(categories, map(float, probs))
|
| 20 |
|
| 21 |
# %% ../app.ipynb 8
|
| 22 |
image = gr.inputs.Image(shape(192,192))
|
|
|
|
| 16 |
categories = ('blanched hazelnut', 'walnut kernel')
|
| 17 |
def classify_image(img):
|
| 18 |
pred, idx, probs = learn.predict(img)
|
| 19 |
+
return dict(zip(categories, map(float, probs)))
|
| 20 |
|
| 21 |
# %% ../app.ipynb 8
|
| 22 |
image = gr.inputs.Image(shape(192,192))
|