def modify_spec(config):
    """modify spec values with the sampled config values."""
    for key, param in config.items():
        if key not in ["steps", "mlflow", "spec"]:
            config["spec"].settings[key].value = param
    return config