Download benchmark/dependency_injection/encoder/spring/test.sh from ibm-research/ScarfBench: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/datasets/ibm-research/ScarfBench/resolve/main/benchmark/dependency_injection/encoder/spring/test.sh
- Command line
-
hf download hf://datasets/ibm-research/ScarfBench/benchmark/dependency_injection/encoder/spring/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/ibm-research/ScarfBench/resolve/main/benchmark/dependency_injection/encoder/spring/test.sh
339 Bytes
| set -euo pipefail | |
| BASE_URL="${BASE_URL:-http://localhost:8080/encoder}" | |
| echo "Health check: ${BASE_URL}" | |
| HTTP_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" "${BASE_URL}") | |
| if [ "$HTTP_STATUS" -eq 200 ]; then | |
| echo "PASS - got HTTP ${HTTP_STATUS}" | |
| exit 0 | |
| else | |
| echo "FAIL - got HTTP ${HTTP_STATUS}" | |
| exit 1 | |
| fi | |