Spaces:
Build error
Build error
Download export_utils.py from GirishaBuilds01/esgenius-ai: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/GirishaBuilds01/esgenius-ai/resolve/main/export_utils.py
- Command line
-
hf download hf://spaces/GirishaBuilds01/esgenius-ai/export_utils.py
-
curl -L -o export_utils.py https://huggingface.co/spaces/GirishaBuilds01/esgenius-ai/resolve/main/export_utils.py
294 Bytes
| import json | |
| def export_json(answer, evidence, weights): | |
| data = { | |
| "answer": answer, | |
| "evidence": evidence, | |
| "mote_weights": weights | |
| } | |
| file_path = "esg_output.json" | |
| with open(file_path, "w") as f: | |
| json.dump(data, f, indent=4) | |
| return file_path | |