def read_models(models_file):
    """
    Read the models file to get a list of filenames.

    :param models_file: models file path
    :type models_file: str
    :return: list of filenames
    :rtype: [str]
    """

    files = []
    with open(models_file, 'r') as f:
        lines = f.readlines()
        lines = [line.strip() for line in lines]
        lines = [line for line in lines if line != '']
        files = [line.split(' ')[1] for line in lines]

    return files