--- title: Iris sdk: gradio sdk_version: 6.32.0 python_version: '3.12' app_file: app.py models: - reflection/Beam-1.0-501B-A23B - reflection/Iris-Content-Guard - reflection/Iris-Cyber-Probe emoji: 👁 --- # Iris public demo Chat with Beam and watch Iris Cyber Probe score each turn. User input and the opening chat markers after it use an advisory threshold. Once Beam writes content, the first token at or above the stop threshold ends the session, including closing markers. The same stop threshold applies to Bash results. Iris Content Guard then scores the visible conversation. Select any turn to revisit its plots. The Gradio Space serves the compiled frontend and manages one session per tab. When Beam calls the Bash tool, the Space runs the command with [just-bash](https://github.com/vercel-labs/just-bash) in that session’s in-memory workspace and sends the result back to Beam. Beam can inspect files, edit them and run scripts through up to six calls per turn. Open **~/workspace** and select a filename to inspect its contents. Workspace changes persist when the turn completes. If scoring is interrupted, press **Send** to retry from your last completed turn. Beam runs on an external SGLang endpoint. Iris Content Guard runs its Transformers classifier inside the Space. When Beam finishes a turn, the browser sends its turn number to Gradio’s `/score_turn` job. Iris Content Guard scores the full visible conversation through that turn using the visitor’s ZeroGPU quota. ## Run the Space Select **ZeroGPU** hardware. Set `BEAM_URL` to the endpoint root or its OpenAI-compatible `/v1` base URL. The endpoint selects its served model. If it requires bearer authentication, set `BEAM_URL_TOKEN` as a Space secret. Use HTTPS for remote Beam and probe URLs. Local loopback URLs may use HTTP. Configure SGLang with Beam's reasoning and tool-call parsers and the Iris Cyber Probe score service. The app joins the chat and probe streams by request ID. The backend requests `input_ids` and `output_ids` in the final `sglext` chunk. It sends those IDs back for one discarded prediction to verify the last generated token before running a tool. Enable input scoring to highlight user requests and Bash results. If the score service has a separate URL, set `IRIS_BEAM_SCORE_URL` to its base URL. Give the Space a read-only `HF_TOKEN` while the Iris Content Guard checkpoint is private. The Space runs custom pipeline code from the Reflection-owned Iris Content Guard repository, so its writers must be trusted to deploy code to the Space. The badge below the message box shows Beam endpoint readiness and updates every ten seconds while the page is open. A check marks Ready, a clock marks startup, and an alert marks an unavailable endpoint. For HF Inference Endpoints it reads the Endpoints management API in the Space owner’s namespace without waking the GPUs. The credential needs permission to read endpoint status. Set `BEAM_ENDPOINT_NAMESPACE` when running locally against HF or when the endpoint belongs to another organization. Sending a turn wakes an idle endpoint and waits up to ten minutes for it to accept requests. Opening the page uses the CPU. Iris Content Guard requests a 96 GB GPU for scoring; each turn can proceed while earlier plots are pending. The release bundle includes `frontend/dist/`. With a compatible local GPU, the same settings and Python 3.12, run from the extracted bundle: ```sh uv venv --python 3.12 uv pip install -r requirements.txt .venv/bin/python app.py ``` Open http://localhost:7860.