yomi-chen's picture
Publish run3: six models,1200 outputs and EditableDesignBench v4 evaluation data
15fe5b5 verified
Raw History Blame Contribute Delete
543 Bytes
"""Extract downloaded result archives into this directory."""
from pathlib import Path
import zipfile
root=Path(__file__).resolve().parent
for archive in sorted((root/'archives').glob('*.zip')):
print('Extracting',archive.name,flush=True)
with zipfile.ZipFile(archive) as z:
for member in z.infolist():
target=(root/member.filename).resolve()
if not target.is_relative_to(root):raise ValueError('Unsafe archive path')
z.extractall(root)
print('Done. See predictions_index.jsonl and README.md.')