update
Browse files
app.py
CHANGED
|
@@ -16,8 +16,12 @@ learner = load_learner('model.pkl')
|
|
| 16 |
categories = ('Dog', 'Cat')
|
| 17 |
|
| 18 |
def classify_image(img):
|
|
|
|
| 19 |
# We are saying that this predictions returns:
|
| 20 |
# the prediction, its index and the prediction probability
|
|
|
|
|
|
|
|
|
|
| 21 |
pred,idx,probs = learn.predict(img)
|
| 22 |
|
| 23 |
# 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 |
+
<<<<<<< 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
|