def fill_config_template(config_temp, model_info):
    """
    Write the model infomation to the model config file.
    """
        
    # Replace template values
    config_content = config_temp
    config_content = config_content.replace("$MODELNAME$",
                                            model_info.name)
    config_content = config_content.replace("$AUTHORNAME$",
                                            model_info.author)
    config_content = config_content.replace("$EMAILADDRESS$",
                                            model_info.email)
    config_content = config_content.replace("$DESCRIPTION$",
                                            model_info.description)
                                          
    return config_content