Spaces:
Sleeping
Sleeping
|
Download README.md from rk-005/openenv-security: direct link, hf CLI and curl.
- Browser
- Download file 889 Bytes
-
https://huggingface.co/spaces/rk-005/openenv-security/resolve/main/README.md
- Command line
-
hf download hf://spaces/rk-005/openenv-security/README.md
-
curl -L -o README.md https://huggingface.co/spaces/rk-005/openenv-security/resolve/main/README.md
889 Bytes
| 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 | |
| ```bash | |
| 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 | |
| ``` | |