Download utils.py from Rakib023/ID_INFO: direct link, hf CLI and curl.
- Browser
- Download file 186 Bytes
-
https://huggingface.co/spaces/Rakib023/ID_INFO/resolve/main/utils.py
- Command line
-
hf download hf://spaces/Rakib023/ID_INFO/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Rakib023/ID_INFO/resolve/main/utils.py
186 Bytes
| import yaml | |
| import os | |
| def read_yaml(path): | |
| with open(path) as f: | |
| return yaml.safe_load(f) | |
| def create_dirs(paths): | |
| for p in paths: | |
| os.makedirs(p, exist_ok=True) | |