Skip to content

Polish for public release - #1

Merged
https-sharif merged 9 commits into
masterfrom
release-polish
Aug 9, 2026
Merged

Polish for public release#1
https-sharif merged 9 commits into
masterfrom
release-polish

Conversation

@https-sharif

Copy link
Copy Markdown
Owner

No description provided.

https-sharif and others added 9 commits August 9, 2026 15:01
Both were superseded by the consolidated backend/ service; nothing imports either, and git history retains them. patient_profile.json moves to the repo root as the single source of patient identity. vision_service/yolov8n.pt is untracked - ultralytics re-downloads it on first run.
Single FastAPI service merging the two prior backends: perception loop over the vision websocket, /ask and /api/caregiver/analyze endpoints, keyword-overlap retrieval over patient_profile.json, and a mock LLM path (MOCK_LLM=true) so the stack runs with no API key. All Gemini calls use the async client so an API round trip cannot stall the event loop, and response.parsed is guarded at every call site. Includes 55 offline tests.
StaticFiles resolved relative to CWD, so the service only started from inside vision_service/; it is now anchored to __file__. Default bind moves from 0.0.0.0 to 127.0.0.1 since no endpoint is authenticated, including GET /frame (live camera stills) and DELETE /people/{name}. Adds a consent notice above the capture button.
The 2s /latest poll overwrote the caretaker's /ask answer because both wrote into #llmResponse; the patient card now has its own element and signatures are tracked per target. Object labels are built as DOM nodes with textContent rather than interpolated into innerHTML. Adds a consent notice to the registration page.
ruff configured with src/known-first-party so the flat backend imports resolve as first-party rather than third-party. gitignore gains .claude/, **/.DS_Store, **/memory_data/ (caregiver-entered personal data), and *.pt. .env.example lists only the variables the live code reads.
Spaces in the old directory name broke shell commands and made it un-importable. Adds a README covering the Ollama prerequisite and both ports; replaces run_command.txt.
MIT license. DISCLAIMER.md states this is a research demo and not a medical device - the model emits a field named clinical_rationale, so this needs saying plainly. PRIVACY.md documents face-embedding storage as biometric data, where it lives, and how to delete it. README rewritten for a stranger: architecture, quickstart with MOCK_LLM=true as the no-API-key path, and the API contract.
@https-sharif
https-sharif merged commit b90a5f0 into master Aug 9, 2026
3 checks passed
@https-sharif
https-sharif deleted the release-polish branch August 9, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant