Spaces:
Running
Running
Commit History
-
Drop XLSX mirror layer to satisfy HuggingFace binary-file policy
The previous commit was rejected by HuggingFace ("push was rejected because it contains binary files. Please use Xet to store binary files. Offending files: app/data/aemo_gen_info.xlsx") so the sync_to_hf workflow failed and the Space stayed on the old code. The mirror layer (live -> raw.githubusercontent.com XLSX -> snapshot) was redundant: the daily CI commits the parsed JSON snapshot in the same step as the XLSX, so they always carried identical freshness. Collapsing to a two-tier fallback (live -> snapshot) keeps the user-visible behaviour identical while removing the binary file that HF rejects. - gen_info_fetcher.py: remove XLSX_MIRROR_URL and the mirror branch in fetch_bess_list. BessListResult.source is now "live" | "snapshot". - scripts/refresh_bess_list.py: stop writing app/data/aemo_gen_info.xlsx. Only bess_list.json and bess_list_meta.json are produced. - .github/workflows/refresh_bess_list.yml: only watch bess_list.json for changes. - app/data/aemo_gen_info.xlsx: r…4424ac7 -
Fix HF deployment serving stale BESS list with fictional DUIDs
The HuggingFace Space was returning a hand-written fallback bess_list.json on every /api/bess call because AEMO's WAF on www.aemo.com.au returns 403 to requests from the HF egress IP range (verified in the HF container logs — UA-spoofing alone doesn't help, the block is IP-based). The fallback had stale fictional DUIDs (NESBESS1, HORNSDALE_PWR1, etc.) and no capacity_mwh field, which caused every BESS to show "? MWh" in the dropdown and every SCADA/dispatch lookup to 404. Five fixes shipped together: 1. Send proper browser headers on the AEMO XLSX request (low-confidence shot — the block is IP-based, but no reason not to try). 2. Bake a fresh bess_list.json snapshot into the repo daily via a new GitHub Action (.github/workflows/refresh_bess_list.yml) running scripts/refresh_bess_list.py from GH runners (egress NOT on AEMO's blocklist). The bundled snapshot now has 38 real BESS units with real DUIDs and capacity_mwh values. 3. Mirror the raw XLSX through raw.githubuse…0d542b0