Download scripts/ci_validate.sh from Scalar-Meta-Hackathon-Team/scalar-meta-hackathon: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/spaces/Scalar-Meta-Hackathon-Team/scalar-meta-hackathon/resolve/main/scripts/ci_validate.sh
- Command line
-
hf download hf://spaces/Scalar-Meta-Hackathon-Team/scalar-meta-hackathon/scripts/ci_validate.sh
-
curl -L -o ci_validate.sh https://huggingface.co/spaces/Scalar-Meta-Hackathon-Team/scalar-meta-hackathon/resolve/main/scripts/ci_validate.sh
426 Bytes
| set -eu | |
| cd "$(dirname "$0")/.." | |
| python -m py_compile app.py inference.py root_env.py submission_common.py | |
| python inference.py --task email_classification --scenario-id easy_invoice_copy >/tmp/email_triage_inference_check.json | |
| export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 | |
| python -m pytest email-triage-env/tests -q | |
| sh scripts/smoke_test.sh | |
| if command -v openenv >/dev/null 2>&1; then | |
| openenv validate . | |
| fi | |