towhee.add_cache_path

towhee.add_cache_path(insert_path: Union[str, Path, List[Union[str, Path]]])[source]

Add a cache location to the front. Most recently added paths will be checked first.

Parameters:

insert_path (str | Path | `list[str | Path]) – The path that you are trying to add. Accepts multiple inputs at once.

Examples: >>> import towhee >>> towhee.add_cache_path(‘mock/path’) >>> towhee.cache_paths[0] PosixPath(‘mock/path’)