def decode_predictions(threshed, pred):
    """
    Converts float pred to the output string.
    """
    if int(threshed) == 0:
        return f"Malignant; Confidence: {round((1-float(pred))*100, 1)}%"
    elif int(threshed) == 1:
        return f"Non-Malignant; Confidence: {round(float(pred)*100)}%"