Spaces:
Sleeping
Sleeping
Download tests/conftest.py from vorddd/GSLC-MLOps: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/spaces/vorddd/GSLC-MLOps/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/vorddd/GSLC-MLOps/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/vorddd/GSLC-MLOps/resolve/main/tests/conftest.py
217 Bytes
| # tests/conftest.py | |
| import os | |
| import sys | |
| # tambah project root ke sys.path => .../GSLC-MLOps | |
| ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) | |
| if ROOT not in sys.path: | |
| sys.path.insert(0, ROOT) | |