Spaces:
Runtime error
Runtime error
Commit History
-
feat: Initial release of MediGuard AI v2.0
MediGuard AIc4f5f25
-
chore: codebase audit and fixes (ruff, mypy, pytest)
- Fixed pytest collection hang by adding root conftest.py and testpaths in pytest.ini - Fixed mypy missing keys for GuildState TypedDict definitions - Fixed ruff whitespace formatting and unhandled B904 exceptions - Added skip markers for unmocked LLM API calls in integration tests - Removed redundant debug script logging and trace files9659593
-
Fix codebase issues: linting, types, tests, and security.
Nikhil Pravin Pise- Resolved over 3,000 ruff linting violations - Enforced strict type checking with mypy - Fixed infinite loop in pytest suite by migrating obsolete tests - Remediated security warnings flagged by Bandit696f787
-
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