fix: use uv run for OCR script
This commit is contained in:
parent
05a1d6ca13
commit
a20de13593
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
||||
```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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue