Spaces:
Build error
Build error
Download scripts/start-container.sh from hicustomer/govsearch: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/spaces/hicustomer/govsearch/resolve/main/scripts/start-container.sh
- Command line
-
hf download hf://spaces/hicustomer/govsearch/scripts/start-container.sh
-
curl -L -o start-container.sh https://huggingface.co/spaces/hicustomer/govsearch/resolve/main/scripts/start-container.sh
546 Bytes
| set -eo pipefail | |
| trap cleanup TERM INT | |
| cleanup() { | |
| /opt/vespa/bin/vespa-stop-configserver | |
| /opt/vespa/bin/vespa-stop-services | |
| exit $? | |
| } | |
| export VESPA_CONFIGSERVERS=$(hostname) | |
| /opt/vespa/bin/vespa-start-configserver | |
| /opt/vespa/bin/vespa-start-services | |
| FORMAT="${VESPA_LOG_FORMAT:-vespa}" | |
| /opt/vespa/bin/vespa-logfmt --follow --format "$FORMAT" ${VESPA_LOGFMT_ARGUMENTS} & | |
| (cd backend_vespa && vespa deploy --wait 300) | |
| /opt/vespa/bin/vespa feed - < data/000936301.jsonl | |
| rye run uvicorn backend:app --host 0.0.0.0 --port 7860 | |