Download oracle_worker.py from xiaojie06/DrugResearchBench: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/xiaojie06/DrugResearchBench/resolve/main/oracle_worker.py
- Command line
-
hf download hf://xiaojie06/DrugResearchBench/oracle_worker.py
-
curl -L -o oracle_worker.py https://huggingface.co/xiaojie06/DrugResearchBench/resolve/main/oracle_worker.py
526 Bytes
| """Container-only paper evaluator entry point for the checked public runner.""" | |
| import importlib.util | |
| import json | |
| from pathlib import Path | |
| import sys | |
| root=Path("/verifier");sys.path.insert(0,str(root)) | |
| spec=importlib.util.spec_from_file_location("paper_reference",root/"reference.py") | |
| module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module) | |
| data=module.evaluate(Path("/submission"),Path("/input"),sys.argv[1]) | |
| Path("/results/checks.json").write_text(json.dumps(data,ensure_ascii=False,allow_nan=False)) | |