Download frontierlab/reporting.py from Jaycee766/FrontierLab-Meta-Hackathon-2026: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/spaces/Jaycee766/FrontierLab-Meta-Hackathon-2026/resolve/main/frontierlab/reporting.py
- Command line
-
hf download hf://spaces/Jaycee766/FrontierLab-Meta-Hackathon-2026/frontierlab/reporting.py
-
curl -L -o reporting.py https://huggingface.co/spaces/Jaycee766/FrontierLab-Meta-Hackathon-2026/resolve/main/frontierlab/reporting.py
625 Bytes
| """Portable audit export: preserve all warnings and source provenance.""" | |
| import json | |
| from .models import Run | |
| def export_json(run: Run) -> str: | |
| return json.dumps(run.as_dict(), indent=2, ensure_ascii=False) | |
| def summary(run: Run) -> dict: | |
| return { | |
| "sources": len(run.papers), | |
| "claims": len(run.audit.verified_claims), | |
| "rejected": len(run.audit.rejected_claims), | |
| "conflicts": len(run.audit.conflicts), | |
| "hypotheses": len(run.hypotheses), | |
| "decision": run.skeptic.get("decision", "UNKNOWN"), | |
| "plan_status": (run.plan or {}).get("status", "NOT_GENERATED"), | |
| } | |