    def check(self, local_dir: Union[str, Path] = Path().cwd()) -> bool:
        """Check if the main file exists and match the file name

        Args:
            local_dir (Union[str, Path]): The directory to the repo.

        Returns:
            bool: Check if passed.
        """
        file_name = self._repo.replace('-', '_')
        for file in ['README.md', f'{file_name}.yaml']:
            if not (Path(local_dir) / file).exists():
                return False
        return True
Check if the main file exists and match the file name

Args:
local_dir (Union[str, Path]): The directory to the repo.

Returns:
bool: Check if passed.
towhee/hub/pipeline_manager.py