Download utils.py from unitxt/data: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/datasets/unitxt/data/resolve/af7d00a66cc744119629631352d5a013ca16fef2/utils.py
- Command line
-
hf download hf://datasets/unitxt/data@af7d00a66cc744119629631352d5a013ca16fef2/utils.py
-
curl -L -o utils.py https://huggingface.co/datasets/unitxt/data/resolve/af7d00a66cc744119629631352d5a013ca16fef2/utils.py
238 Bytes
| class Singleton(type): | |
| _instances = {} | |
| def __call__(cls, *args, **kwargs): | |
| if cls not in cls._instances: | |
| cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) | |
| return cls._instances[cls] |