Spaces:
Sleeping
Sleeping
Commit History
-
Add prep_connections.py CLI to dodge HF Spaces upload-size limit
Piers Lyon +1: Claude Opus 4.7 (1M context)User reports the in-app upload still does nothing for the 25 MB master XLSX even with maxUploadSize / maxMessageSize raised — HF Spaces' edge proxy silently drops the websocket frame before it reaches Python. Workaround that doesn't require migrating off HF or paying for a bigger tier: convert the XLSX to a slim CSV locally first. The Curium master workbook is mostly inert sheets (pivot tables, message templates, dropdowns); the actual New Data sheet alone is ~5 MB as CSV. - scripts/prep_connections.py: tiny CLI that wraps the existing convert_xlsx_to_csv (with the same sheet auto-detection that prefers movement-tracking sheets) and writes a CSV next to the source. Tested on the real workbook: 25.1 MB XLSX -> 5.1 MB CSV. - app.py: file_uploader help text mentions the script, plus a collapsible "Large XLSX won't upload?" expander with the exact command for admins who hit the silent-drop symptom. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1527bac