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
1
2
import os
2
3
import random
3
4
import uuid
@@ -361,6 +362,11 @@ def read_from_file(self) -> Dict:
361
362
"""
362
363
363
364
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
+ )
364
370
return {}
365
371
yaml_dict = yaml .load (open (self .yaml_path , "r" ), Loader = yaml .FullLoader )
366
372
return yaml_dict [self .TEMPLATES_KEY ]
Original file line number Diff line number Diff line change 1
- black
1
+ black <= 21.12b0
2
2
datasets >= 1.7.0
3
3
flake8
4
4
isort == 5.8.0
You can’t perform that action at this time.
0 commit comments