fixed typo in learner
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ learn = load_learner('model.pkl')
|
|
8 |
categories = ('Dog','Cat')
|
9 |
|
10 |
def classify_image(img):
|
11 |
-
pred, idx, probs =
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
image = gr.inputs.Image(shape=(192,192))
|
|
|
8 |
categories = ('Dog','Cat')
|
9 |
|
10 |
def classify_image(img):
|
11 |
+
pred, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
image = gr.inputs.Image(shape=(192,192))
|