def return_label(predicted_probs):
    """
    Function that takes in a list of 7 class
    probabilities and returns the labels
    with probabilities over a certain threshold.
    """
    threshold = 0.4
    labels = []
    classes = ['not toxic', 'toxic', 'severe toxic', 'obscene',
               'threat', 'insult', 'identity hate']

    i = 0
    while i < len(classes):
        if predicted_probs[i] > threshold:
            labels.append(classes[i])
        i += 1

    return (labels)