update
Browse files15 unmodified lines161718192021222315 unmodified linescategories = ('Dog', 'Cat')def classify_image(img):# We are saying that this predictions returns:# the prediction, its index and the prediction probabilitypred,idx,probs = learn.predict(img)# Here we return a dictionary with categories as keys and its probabilities as values15 unmodified lines16171819202122232425262715 unmodified linescategories = ('Dog', 'Cat')def classify_image(img):<<<<<<< HEAD# We are saying that this predictions returns:# the prediction, its index and the prediction probability=======# We are saying that this predictions returns: the prediction, its index and the prediction probability>>>>>>> e28b7be49fa8fa87e6f9d2476e42d56e2f06d584pred,idx,probs = learn.predict(img)# Here we return a dictionary with categories as keys and its probabilities as values
app.py+4