Download utils.py from unitxt/data: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/datasets/unitxt/data/resolve/e22dd6f6c55c857dd2fadabbeacfafaabfb1c8bd/utils.py
- Command line
-
hf download hf://datasets/unitxt/data@e22dd6f6c55c857dd2fadabbeacfafaabfb1c8bd/utils.py
-
curl -L -o utils.py https://huggingface.co/datasets/unitxt/data/resolve/e22dd6f6c55c857dd2fadabbeacfafaabfb1c8bd/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] |