MEGA-BOQ-WEBAPP/run_app.sh
MEGA INFRA 301d0fff44 MEGA INFRA BOQ Converter — Candy PDF to consultant Excel
Reads our Candy PDF (deterministically, no OCR or model needed) and populates
the consultant's own workbook using their formulas, column layout and PAYMENT
column. Nothing is ever silently overwritten: every disagreement is reported,
can be settled inside the app, and regenerated.

- extract   Candy text PDF -> tree (x-position column detection)
- template  layout detect, sequence align, write, totals, overrides
- validate  qty x rate and children-vs-subtotal reconciliation
- profiles  per-consultant layout profiles, stored on a volume

Shipped with a Dockerfile + docker-compose for Coolify.
2026-10-01 02:32:13 +02:00

7 lines
369 B
Bash
Executable file

#!/usr/bin/env bash
# Start the BOQ converter locally. Port 8501 (not 3000 - something else uses it).
set -e
cd "$(dirname "$0")"
[ -d .venv ] || python3 -m venv .venv
.venv/bin/python -c "import streamlit" 2>/dev/null || .venv/bin/python -m pip install -q streamlit pdfplumber openpyxl
exec .venv/bin/streamlit run app.py --server.port 8501 --server.address 127.0.0.1