Skip to content

Commit 1c3406d

Browse files
fix: create folder if it does not exist
1 parent 00f5abe commit 1c3406d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dome_copilot/bulk_process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
dataset_dir = Path("/home/iheredia/ignore/datasets/dome/")
1616
pdf_dir = dataset_dir / "pdfs" / dataset_name
1717
annotation_dir = dataset_dir / "annotations" / f"{dataset_name}_{version}"
18+
annotation_dir.mkdir(parents=True, exist_ok=True)
1819

1920
# Init the Gradio client
2021
copilot_url = "https://dome-copilot.ifca.es/"

0 commit comments

Comments
 (0)