def decode_prediction(prediction):
    '\n    Decodes predictions and returns a result string.\n    '
    if (np.where((prediction == np.amax(prediction)))[1] == 2):
        prob_orange = round((prediction[0][2] * 100), 2)
        label = f'I am {prob_orange} % sure this is an orange 🍊!'
    if (np.where((prediction == np.amax(prediction)))[1] == 1):
        prob_banana = round((prediction[0][1] * 100), 2)
        label = f'I am {prob_banana} % sure this is a banana 🍌!'
    if (np.where((prediction == np.amax(prediction)))[1] == 0):
        prob_apple = round((prediction[0][0] * 100), 2)
        label = f'I am {prob_apple} % sure this is an apple 🍎!'
    return label
Decodes predictions and returns a result string.
def decode_prediction(prediction):
    '\n    \n    '
    if (np.where((prediction == np.amax(prediction)))[1] == 2):
        prob_orange = round((prediction[0][2] * 100), 2)
        label = f'I am {prob_orange} % sure this is an orange 🍊!'
    if (np.where((prediction == np.amax(prediction)))[1] == 1):
        prob_banana = round((prediction[0][1] * 100), 2)
        label = f'I am {prob_banana} % sure this is a banana 🍌!'
    if (np.where((prediction == np.amax(prediction)))[1] == 0):
        prob_apple = round((prediction[0][0] * 100), 2)
        label = f'I am {prob_apple} % sure this is an apple 🍎!'
    return label