Spaces:
Sleeping
Sleeping
File size: 5,271 Bytes
5b10673 d53a0e0 5b10673 d53a0e0 5b10673 d53a0e0 585cfd5 d53a0e0 284f4f9 585cfd5 5b10673 585cfd5 5b10673 585cfd5 5b10673 585cfd5 d53a0e0 585cfd5 d53a0e0 585cfd5 5b10673 585cfd5 5b10673 585cfd5 5b10673 d53a0e0 5b10673 585cfd5 d53a0e0 585cfd5 5b10673 585cfd5 5b10673 585cfd5 5b10673 d53a0e0 5b10673 585cfd5 d53a0e0 585cfd5 5b10673 585cfd5 5b10673 585cfd5 d53a0e0 5b10673 d53a0e0 5b10673 d53a0e0 5b10673 d53a0e0 5b10673 d53a0e0 585cfd5 d53a0e0 585cfd5 d53a0e0 585cfd5 5b10673 585cfd5 0a48262 585cfd5 d53a0e0 585cfd5 d53a0e0 5b10673 d53a0e0 5b10673 585cfd5 5b10673 585cfd5 5b10673 585cfd5 d53a0e0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | ---
title: AidAILine
emoji: π©Ί
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: mit
short_description: Local-first medical record keeper for caregivers
tags:
- build-small
- track:backyard-ai
- badge:off-brand
- badge:best-demo
---
# π₯ AidAILine
> **Build Small Hackathon β Backyard AI Track**
> Built for caregivers managing multi-provider care for a dependent. Local-first. AI-powered. Nothing leaves your computer.
## Demo & Social Links
- **Live Space:** https://huggingface.co/spaces/build-small-hackathon/AidAILine
- **Demo Video:** _(upload a screen recording to YouTube as unlisted, then paste the URL here)_
- **Social Media Post:** https://x.com/JaccobBarrett/status/2066667333943205985
---
## The Story
Caregivers track a lot. Doctors, physical therapy, weekly prescriptions, monthly refills, lab results from three different clinics, allergies, and the questions you wish you'd asked at the last visit.
Today, that lives on a paper calendar with sticky notes pinned to it. Things fall through the cracks.
**AidAILine replaces the paper calendar and the sticky notes** with a local-first Gradio app that runs on your own hardware. A small AI model (Qwen 2.5 7B Instruct via the HF Inference API) reads your uploaded medical PDFs and answers questions about them in plain language. The app itself is small enough to read end-to-end. Your data never leaves the app.
No telemetry. No analytics. No cloud sync. No accounts.
---
## What It Does
| Tab | What it does |
|---|---|
| π **Documents** | Upload PDFs β ask questions in natural language via small AI |
| π **Medications** | Track current & past meds with dosage, frequency, side effects, and notes |
| π
**Appointments** | Upcoming appointments with timeline, prep notes, and a calendar-aware add/edit flow |
| π½οΈ **Food Chart** | Liked / Disliked / Allergy foods in three columns β print and bring to the visit |
| π **Doctor Visit** | Pre-Visit Brief generator β pulls meds, allergies, and your custom questions into a print-ready handout |
| π€ **Export & Share** | One-click copy, mailto link, or print for the full caregiver summary |
| βοΈ **Settings** | Patient info, model path, privacy-first portal integrations (clearly marked as future work) |
**The pre-visit brief is the killer feature.** Walk into grandma's appointment with a single page that says: "Here's her current meds, here are the foods she can't eat, here are the three questions I want to ask today." Most caregivers bring nothing. AidAILine gives you a reason to bring everything.
---
## Tech Stack
| Component | Library |
|---|---|
| UI | Gradio 5 |
| AI (Documents tab) | Qwen 2.5 7B Instruct via Hugging Face Inference API |
| Embeddings | sentence-transformers (`all-MiniLM-L6-v2`) |
| Vector Store | FAISS |
| PDF Parsing | PyMuPDF |
| Storage | Local JSON files |
All models are under 32B parameters. The app runs on a free Hugging Face CPU Space.
---
## Why "Backyard AI"
This is the textbook backyard build:
- **Small model** β Qwen 2.5 7B runs on the HF Inference API, free tier
- **Local storage** β everything is plain JSON in `data/`
- **Local PDF parsing** β no cloud OCR
- **No telemetry** β open the network tab, watch nothing happen
- **No accounts** β no signup, no login, no password reset
- **Open weights** β Qwen 2.5 is Apache 2.0
The 6 core tabs (medications, appointments, food, doctor visit, export, settings) run fully offline. Only the Documents tab calls the Inference API, and only to run the small model β your data and your prompts are not stored or logged by the model host.
---
## Privacy
The 6 core tabs are 100% offline. All patient data is stored as plain JSON files in the `data/` directory. No analytics, no telemetry, no accounts. The Documents tab uses a hosted model, but only the question you type is sent to the model β the model does not store or train on your prompts.
---
## Project Structure
```
build-small/
βββ app.py # Gradio entry point
βββ rag_engine.py # PDF RAG pipeline (embed β FAISS β hosted Qwen)
βββ pdf_loader.py # PDF parsing + chunking
βββ med_tracker.py # Medication CRUD
βββ appointment_tracker.py # Appointment CRUD
βββ food_tracker.py # Food chart CRUD
βββ profiles.py # Multi-profile support
βββ doc_forms.py # Pre-Visit Brief + Doctor Visit generator
βββ export_tool.py # Export + mailto builder
βββ config.py # Paths, settings
βββ requirements.txt
βββ data/ # Patient data (JSON)
βββ assets/
```
---
## What's Next (v2)
Captured in a separate vault, planned for after the hackathon:
- Manager / Sub-Profile architecture β primary account manages care for multiple dependents
- Medication refill & prescription renewal reminders
- Types of Care provider directory β categorized directory with frequency tracking
- One-tap phone calls to pharmacy and prescriber
The v1 ships the foundation. V2 makes it a household medical command center.
---
## License
MIT
*Built for the Build Small Hackathon β Backyard AI Track*
|