import logging


def weights_load(model, weights):
    """Loads weights in to a model.

    Args:
        model (Keras model instance): A Keras model instance.
        weights (str): Path to weights file.

    Returns:
        A model with weights initialized.

    """
    model.load_weights(weights)
    logging.info("The weights have been loaded.")
    return model