Spaces:
Build error
Build error
Download scripts/fix_harness_import.py from EmbodiedAgentInterface/backend: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/EmbodiedAgentInterface/backend/resolve/da4c3ac86bdec340ea7cd73de405becf8e9e59a2/scripts/fix_harness_import.py
- Command line
-
hf download hf://spaces/EmbodiedAgentInterface/backend@da4c3ac86bdec340ea7cd73de405becf8e9e59a2/scripts/fix_harness_import.py
-
curl -L -o fix_harness_import.py https://huggingface.co/spaces/EmbodiedAgentInterface/backend/resolve/da4c3ac86bdec340ea7cd73de405becf8e9e59a2/scripts/fix_harness_import.py
496 Bytes
| """This file should be used after pip install -r requirements. | |
| It creates a folder not ported during harness package creation (as they don't use a Manifest file atm and it ignore `.json` files). | |
| It will need to be updated if we want to use the harness' version of big bench to actually copy the json files. | |
| """ | |
| import os | |
| import lm_eval | |
| if __name__ == "__main__": | |
| lm_eval_path = lm_eval.__path__[0] | |
| os.makedirs(os.path.join(lm_eval_path, "datasets", "bigbench_resources"), exist_ok=True) |