Download code/tt_glmocr/tests/_paths.py from changh95/GLM-OCR: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/changh95/GLM-OCR/resolve/main/code/tt_glmocr/tests/_paths.py
- Command line
-
hf download hf://changh95/GLM-OCR/code/tt_glmocr/tests/_paths.py
-
curl -L -o _paths.py https://huggingface.co/changh95/GLM-OCR/resolve/main/code/tt_glmocr/tests/_paths.py
521 Bytes
| # SPDX-License-Identifier: Apache-2.0 | |
| """Paths of the development device / golden checks (dev_*.py): set GLMOCR_ASSETS (the golden set built by | |
| research/glmocr/golden/*.py) and GLMOCR_MODEL (a local zai-org/GLM-OCR checkpoint directory).""" | |
| import os | |
| ASSETS = os.environ.get("GLMOCR_ASSETS") or "" | |
| MODEL = os.environ.get("GLMOCR_MODEL") or os.environ.get("GLMOCR_MODEL_DIR") or "" | |
| if not (ASSETS and MODEL): | |
| raise SystemExit("set GLMOCR_ASSETS (golden set dir) and GLMOCR_MODEL (checkpoint dir) for the dev checks") | |