Spaces:
Running on Zero
Running on Zero
| 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]}" | |