CoolFace
Apppublic

Aviral3/risa_pa_tree

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

RISA PA Question Tree — Backend

FastAPI + asyncpg backend for the RISA Chrome extension. Captures payer-portal Prior Authorization questions, options, and selections into per-(payer × specialty) trees. Backed by Neon Postgres.

This Space hosts the backend only. The dashboard runs on the admin's laptop and pulls data over HTTPS.

Required Space secrets

Set in Settings → Variables and secrets:

VariableWhat
DATABASE_URLNeon Postgres connection string
ANTHROPIC_API_KEYClaude API key (screenshot OCR + portal classifier)
ADMIN_KEYToken for /admin/employees seeding
JWT_SECRETopenssl rand -hex 32
ENVdevelopment (variable, not secret)

Cold-start behavior

Free CPU Basic Spaces sleep after ~48 hours of zero traffic and wake on first request (~30 s). Captured data lives in Neon, not the Space — sleeping never loses anything.