Felipe
commited on
Commit
·
9f9219a
1
Parent(s):
30974ce
Fixing app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ learn = load_learner('model.pkl')
|
|
9 |
categories = ('Teddy', 'Grizzly', 'Black Bear')
|
10 |
|
11 |
def classify_image(img):
|
12 |
-
pred, idx, probs
|
13 |
return dict(zip(categories), map(float, probs))
|
14 |
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|
|
|
9 |
categories = ('Teddy', 'Grizzly', 'Black Bear')
|
10 |
|
11 |
def classify_image(img):
|
12 |
+
pred, idx, probs= learn.predict(img)
|
13 |
return dict(zip(categories), map(float, probs))
|
14 |
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|