Skip to content

Commit dcac753

Browse files
authored
Make a directory for the dataset retriever (#308)
1 parent 6515ea8 commit dcac753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prompt2model/dataset_retriever/description_dataset_retriever.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def initialize_search_index(self) -> None:
5757
self.dataset_infos: list[DatasetInfo] = []
5858
if not os.path.exists(self.dataset_info_file):
5959
# Download the dataset search index if one is not on disk already.
60-
logger.info("Downlidng the dataset search index")
60+
logger.info("Downloading the dataset search index")
61+
os.makedirs(os.path.dirname(self.dataset_info_file), exist_ok=True)
6162
urllib.request.urlretrieve(
6263
"http://phontron.com/data/prompt2model/dataset_index.json",
6364
self.dataset_info_file,

0 commit comments

Comments
 (0)