openenv-security / README.md
rk-005's picture
Deploy OpenEnv API fixes
bc53ad6
|
Raw History Blame Contribute Delete
889 Bytes
metadata
title: SENTRYX OpenEnv Security
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false

SENTRYX OpenEnv Security

Deployable Hugging Face Docker Space bundle for the OpenEnv benchmark server.

Environment variables:

  • API_BASE_URL
  • MODEL_NAME
  • HF_TOKEN

Endpoints:

  • GET /
  • GET /tasks
  • POST /reset
  • POST /step
  • GET /state
  • POST /analyze
  • POST /predict

Deploy

  1. Create a new Hugging Face Space with Docker SDK.
  2. Copy the contents of this folder into the Space repository root.
  3. Add these Space secrets or variables:
    • API_BASE_URL
    • MODEL_NAME
    • HF_TOKEN
  4. Push to the Space repository.

Local run

docker build -t sentryx-openenv-space .
docker run --rm -p 7860:7860 \
  -e API_BASE_URL="$API_BASE_URL" \
  -e MODEL_NAME="$MODEL_NAME" \
  -e HF_TOKEN="$HF_TOKEN" \
  sentryx-openenv-space