Spaces:
Sleeping
Sleeping
|
Download README.md from DerXanity/farient-deckcheck: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/spaces/DerXanity/farient-deckcheck/resolve/main/README.md
- Command line
-
hf download hf://spaces/DerXanity/farient-deckcheck/README.md
-
curl -L -o README.md https://huggingface.co/spaces/DerXanity/farient-deckcheck/resolve/main/README.md
1.94 kB
| title: Farient DeckCheck API | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| app_port: 8000 | |
| pinned: false | |
| short_description: AI-powered brand-compliance review for executive decks. | |
| # Farient DeckCheck β API | |
| FastAPI backend for the DeckCheck multi-agent audit pipeline. | |
| ## Endpoints | |
| - `POST /api/audits` β upload a `.pptx`, get a `job_id` | |
| - `GET /api/audits` β list audits | |
| - `GET /api/audits/{job_id}` β poll status | |
| - `GET /api/audits/{job_id}/events` β Server-Sent Events stream | |
| - `GET /api/audits/{job_id}/slides` β slides + findings | |
| - `GET /api/audits/{job_id}/slides/{n}/image` β rendered slide PNG | |
| - `GET /api/audits/{job_id}/export?fmt=md|json|pdf|pptx` β export | |
| - `DELETE /api/audits/{job_id}` β cancel + remove | |
| - `GET /health` β liveness probe | |
| - `GET /health/preflight` β environment readiness checks | |
| ## Required environment variables (set in Space settings) | |
| | Var | Purpose | Required | | |
| |---|---|---| | |
| | `OPENAI_API_KEY` | OpenAI API access | β | | |
| | `WEB_ORIGINS` | CORS allowlist, comma-separated origins (e.g. your Vercel URL) | β | | |
| | `OPENAI_MODEL_SLIDE` | Per-slide reviewer model (default `gpt-4o-mini`) | optional | | |
| | `OPENAI_MODEL_DECK` | Deck consistency model (default `gpt-4o`) | optional | | |
| | `OPENAI_MODEL_MERGE` | Lead auditor merge model (default `gpt-4o`) | optional | | |
| | `OPENAI_REVIEW_CONCURRENCY` | Per-slide review concurrency (default `2`) | optional | | |
| | `MAX_UPLOAD_MB` | Upload size cap (default `60`) | optional | | |
| ## Architecture | |
| Pipeline: **parse β render** (LibreOffice, headless) β **review** (per-slide | |
| single-shot `gpt-4o-mini` with deterministic safety-net injection) β | |
| **deck consistency** (`gpt-4o`) β **lead auditor merge** (`gpt-4o`) β **finalize**. | |
| Realtime UX via SSE. Job state persists at `/tmp/audits/{job_id}/` during | |
| the Space's container lifetime. | |
| Frontend: separate Next.js app deployed to Vercel that talks to this API. | |