--- title: FeeNoteGen emoji: ⚖️ colorFrom: indigo colorTo: gray sdk: gradio sdk_version: 5.29.0 python_version: 3.11 app_file: app.py pinned: false license: mit --- # Fee Note Generator Batch fee note generator for counsel. Paste pipe-delimited fee note data and receive DOCX + PDF fee notes generated from a template. ## Features - **Auto date**: Today's date is inserted automatically — no need to update the template - **Fuzzy solicitor matching**: Handles variations like `AB Wolfe & Co.` vs `AB Wolfe and Co.` automatically - **DOCX + PDF output**: Both formats generated for every fee note - **VAT calculation**: Net → VAT (23%) → Gross calculated automatically - **Add solicitors on the fly**: New firms can be added via the UI without redeploying - **Cross-run replacement**: Handles Word's internal text splitting reliably ## Input format ``` filename | solicitor_name | case_record | case_name | description | net_amount 20264402 | O'Connor LLP | 2023/00700 | Permanent TSB PLC v Barrett | Attendance, Limerick CC 6.3.26 | 200 ``` The header row is optional — if omitted, it is added automatically. ## Files - `app.py` — Main application - `Fee-Note-Template.docx` — Template with placeholders - `Solicitors-Addresses.txt` — Solicitor directory (name, address, domain, email routing) - `packages.txt` — System dependencies (LibreOffice for PDF conversion) - `requirements.txt` — Python dependencies