Download scripts/verify_setup.sh from cbratkovics/document-intelligence-ai: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/cbratkovics/document-intelligence-ai/resolve/main/scripts/verify_setup.sh
- Command line
-
hf download hf://spaces/cbratkovics/document-intelligence-ai/scripts/verify_setup.sh
-
curl -L -o verify_setup.sh https://huggingface.co/spaces/cbratkovics/document-intelligence-ai/resolve/main/scripts/verify_setup.sh
407 Bytes
| # Verify a local checkout: imports, tests, and an offline evaluation run. | |
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| export APP_ENV_FILE="${APP_ENV_FILE:-/nonexistent/.env}" | |
| export ANONYMIZED_TELEMETRY=False | |
| python -c "import src.api.main; print('import ok')" | |
| python -m pytest tests -q | |
| python -m eval.run_eval --embedding none --out eval/results/verify-lexical.json | |
| echo "setup verified" | |