Sara Tolosa
commited on
Commit
·
db36da3
1
Parent(s):
6f2137e
update
Browse files
app.py
CHANGED
@@ -16,12 +16,7 @@ learner = load_learner('model.pkl')
|
|
16 |
categories = ('Dog', 'Cat')
|
17 |
|
18 |
def classify_image(img):
|
19 |
-
<<<<<<< HEAD
|
20 |
-
# We are saying that this predictions returns:
|
21 |
-
# the prediction, its index and the prediction probability
|
22 |
-
=======
|
23 |
# We are saying that this predictions returns: the prediction, its index and the prediction probability
|
24 |
-
>>>>>>> e28b7be49fa8fa87e6f9d2476e42d56e2f06d584
|
25 |
pred,idx,probs = learn.predict(img)
|
26 |
|
27 |
# Here we return a dictionary with categories as keys and its probabilities as values
|
|
|
16 |
categories = ('Dog', 'Cat')
|
17 |
|
18 |
def classify_image(img):
|
|
|
|
|
|
|
|
|
19 |
# We are saying that this predictions returns: the prediction, its index and the prediction probability
|
|
|
20 |
pred,idx,probs = learn.predict(img)
|
21 |
|
22 |
# Here we return a dictionary with categories as keys and its probabilities as values
|