Spaces:
Running on Zero
Running on Zero
File size: 396 Bytes
3ad5bcd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/usr/bin/env bash
set -euo pipefail
: "${SEED_SPACE_URL:?Set SEED_SPACE_URL}"
AUTH=()
if [[ -n "${HF_TOKEN:-}" ]]; then
AUTH=(-H "Authorization: Bearer ${HF_TOKEN}")
fi
curl --fail --silent --show-error \
-X POST \
"${SEED_SPACE_URL%/}/gradio_api/call/autonomous_cycle" \
-H "Content-Type: application/json" \
"${AUTH[@]}" \
--data "{\"data\":[\"${SEED_TRIGGER_SECRET:-}\",false]}"
|