File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ import logging
12import os
23import random
34import uuid
@@ -361,6 +362,11 @@ def read_from_file(self) -> Dict:
361362 """
362363
363364 if not os .path .exists (self .yaml_path ):
365+ dataset_name = f"{ self .dataset_name } { self .subset_name } " if self .subset_name else self .dataset_name
366+ logging .warning (
367+ f"Tried instantiating `DatasetTemplates` for { dataset_name } , but no prompts found. "
368+ "Please ignore this warning if you are creating new prompts for this dataset."
369+ )
364370 return {}
365371 yaml_dict = yaml .load (open (self .yaml_path , "r" ), Loader = yaml .FullLoader )
366372 return yaml_dict [self .TEMPLATES_KEY ]
Original file line number Diff line number Diff line change 1- black
1+ black <= 21.12b0
22datasets >= 1.7.0
33flake8
44isort == 5.8.0
You can’t perform that action at this time.
0 commit comments