File size: 521 Bytes
aa204f5
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
# 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")