fix: use uv run for OCR script

This commit is contained in:
Connor Rhodes 2026-04-29 01:53:09 +00:00
parent 05a1d6ca13
commit a20de13593

View file

@ -19,7 +19,7 @@ Log receipt images and expense details into the `wip.work_expenses` collection i
1. **Extract receipt info** — If the user sent an image, run the OCR script to read the date, vendor, and amount: 1. **Extract receipt info** — If the user sent an image, run the OCR script to read the date, vendor, and amount:
```bash ```bash
python3 scripts/ocr_receipt.py /path/to/image.jpg uv run --with requests python3 scripts/ocr_receipt.py /path/to/image.jpg
``` ```
The script is located at `~/notes/skills/log-work-expense/scripts/ocr_receipt.py`. It returns JSON with `date`, `vendor`, and `amount` fields. If the output doesn't contain a confident date, **ask the user** — never guess. If they only provided text, use that. The script is located at `~/notes/skills/log-work-expense/scripts/ocr_receipt.py`. It returns JSON with `date`, `vendor`, and `amount` fields. If the output doesn't contain a confident date, **ask the user** — never guess. If they only provided text, use that.