Download scripts/_bootstrap.py from OneScience-Group/UniKP: direct link, hf CLI and curl.
- Browser
- Download file 160 Bytes
-
https://huggingface.co/OneScience-Group/UniKP/resolve/main/scripts/_bootstrap.py
- Command line
-
hf download hf://OneScience-Group/UniKP/scripts/_bootstrap.py
-
curl -L -o _bootstrap.py https://huggingface.co/OneScience-Group/UniKP/resolve/main/scripts/_bootstrap.py
160 Bytes
| from pathlib import Path | |
| import sys | |
| ROOT_DIR = Path(__file__).resolve().parents[1] | |
| root = str(ROOT_DIR) | |
| if root not in sys.path: | |
| sys.path.insert(0, root) | |