|
Download README.md from SolutionChallenge/solution_challenge_backend: direct link, hf CLI and curl.
- Browser
- Download file 984 Bytes
-
https://huggingface.co/spaces/SolutionChallenge/solution_challenge_backend/resolve/main/README.md
- Command line
-
hf download hf://spaces/SolutionChallenge/solution_challenge_backend/README.md
-
curl -L -o README.md https://huggingface.co/spaces/SolutionChallenge/solution_challenge_backend/resolve/main/README.md
984 Bytes
| title: Solution Challenge Backend | |
| emoji: 🐳 | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| Backend API for Community Security and Emergency Management. | |
| ## Hugging Face deployment notes | |
| - **Frontend:** [community-security-and-emergency-ma-gamma.vercel.app](https://community-security-and-emergency-ma-gamma.vercel.app/) | |
| - **Set Space replicas to 1** — WebSocket camera control, refresh tokens, and live face state are per-container. Multiple replicas cause intermittent 401 refresh failures and face tracking that “stops working”. | |
| - **Repository secrets (required):** | |
| - `CORS_ORIGINS=https://community-security-and-emergency-ma-gamma.vercel.app,https://rapid-eec43.web.app,http://localhost:5173` | |
| - `CEPHEUS_JWT_SECRET`, `CEPHEUS_AUTH_USERS`, `GEMINI_API_KEY` | |
| - **Hardware:** Use **CPU upgrade** (or GPU if available). Set `OMP_NUM_THREADS=4` and `CEPHEUS_FACE_WORKERS=4` (already in Dockerfile) so InsightFace uses available CPU cores. | |