CoolFace
Apppublic

ITNovaML/PCAgentinAI

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
README.md53 linesDownload Raw Back to root
1---2title: PolicyBridge3emoji: ๐Ÿ 4colorFrom: yellow5colorTo: blue6sdk: docker7app_port: 78608pinned: false9---10 11# PolicyBridge โ€” P&C Insurance Multi-Agent Pipeline12 13Bronze โ†’ Silver โ†’ Gold ยท 5 XGBoost Agents ยท Flask API ยท Clever Cloud MySQL14 15## Endpoints16 17| Method | Route | Description |18|--------|-------|-------------|19| GET | `/status` | DB connectivity + agent model check |20| GET | `/submissions/recent?limit=10` | Latest Bronze submissions |21| POST | `/submit` | Ingest new submission into Bronze layer |22| POST | `/agent/kyc` | Run Agent 1 โ€” SSN / KYC |23| POST | `/agent/property` | Run Agent 2 โ€” Property Risk |24| POST | `/agent/underwriting` | Run Agent 3 โ€” Underwriting |25| POST | `/agent/pricing` | Run Agent 4 โ€” ML Pricing |26| POST | `/agent/issuance` | Run Agent 5 โ€” Policy Issuance |27| GET | `/debug/tables` | List all DB tables (dev) |28| GET | `/debug/submission` | Inspect latest submission (dev) |29 30## HuggingFace Secrets Required31 32Add these in **Settings โ†’ Variables and Secrets**:33 34```35MYSQL_ADDON_HOST      = btvbbpqhvnttzvptguj3-mysql.services.clever-cloud.com36MYSQL_ADDON_PORT      = 330637MYSQL_ADDON_USER      = utenclk29u394u1j38MYSQL_ADDON_PASSWORD  = QXFZTmUtPnXrKFqZKpLQ39MYSQL_ADDON_DB        = btvbbpqhvnttzvptguj340```41 42## Model Files (Git LFS)43 44`.pkl` files in `models/` must be tracked with Git LFS before pushing:45 46```bash47git lfs install48git lfs track "*.pkl"49git add .gitattributes50git add models/*.pkl51git commit -m "add model files via LFS"52git push53```