Spaces:
Runtime error
Runtime error
Commit History
-
Production Upgrade v2.0: SSE streaming, HIPAA compliance, Gradio Q&A UI
Nikhil Pravin Pise## Features Added - SSE streaming endpoint (/ask/stream) for real-time responses - HIPAA-compliant audit middleware with PHI redaction - Security headers middleware (CSP, X-Frame-Options) - Medical Q&A chat interface in Gradio HF app - PostgreSQL and FAISS health checks - Comprehensive medical safety test suite (19 tests) ## Files Modified - src/routers/ask.py: Added SSE streaming with AsyncGenerator - src/routers/health.py: PostgreSQL + FAISS health probes - src/main.py: Integrated HIPAA/security middlewares - huggingface/app.py: Added streaming Q&A section ## Files Added - src/middlewares.py: HIPAAAuditMiddleware, SecurityHeadersMiddleware - tests/test_medical_safety.py: Critical biomarker, guardrail, citation tests ## Test Results - 129 tests passing, 6 skipped - All production features validated3ca1d38