towhee.update_default_cache

towhee.update_default_cache(default_path: Union[str, Path])[source]

Update default cache.

Parameters:

default_path (Union[str, Path]) – The default cache path.

Examples

>>> import towhee
>>> towhee.update_default_cache('mock/path')
>>> towhee.default_cache
PosixPath('mock/path')
>>> from towhee.engine import DEFAULT_LOCAL_CACHE_ROOT
>>> towhee.update_default_cache(DEFAULT_LOCAL_CACHE_ROOT)