--- title: Medical Intent Escalation emoji: 🏥 colorFrom: blue colorTo: red sdk: docker pinned: false license: mit app_port: 7860 --- # Medical Intent Escalation Real-time clinical intent classification and safety escalation API powered by DriveHealthBERT. ## Endpoints - **POST /predict** — Classify medical intent from text - **POST /predict/clinical** — Full clinical risk assessment (R0–R3) - **POST /conversation/start** — Start a clinical conversation session - **POST /conversation/turn** — Process a patient turn - **POST /stream/chunk** — Process streaming STT chunks with SPRT decisions - **GET /health** — Health check - **GET /docs** — Interactive Swagger UI ## Quick Test ```bash curl -X POST "https://YOUR-SPACE.hf.space/predict" \ -H "Content-Type: application/json" \ -d '{"text": "I have been having chest pain"}' ```