atticusg commited on
Commit
1a2605d
·
verified ·
1 Parent(s): f3dc264

Change no feature or token to be a warning

Browse files
Files changed (1) hide show
  1. src/submission/check_validity.py +2 -2
src/submission/check_validity.py CHANGED
@@ -626,9 +626,9 @@ def verify_causal_variable_submission(hf_repo, progress=gr.Progress()):
626
  variables_valid[curr_task][curr_variable] = True
627
 
628
  if num_py_files == 0:
629
- errors.append("No featurizer .py file detected in root of provided repo.")
630
  elif num_py_files == 1:
631
- errors.append("Found one .py script, but expected two: one for the featurizer, and another for the token position functions.")
632
 
633
  task_set, model_set = set(), set()
634
  for tm in directories_present:
 
626
  variables_valid[curr_task][curr_variable] = True
627
 
628
  if num_py_files == 0:
629
+ warnings.append("No featurizer.py or token_position.py files detected in root of provided repo. We will load from the code used for baseline evaluations.")
630
  elif num_py_files == 1:
631
+ warnings.append("Either featurizer.py or token_position.py files missing in root of provided repo. We will load from the code used for baseline evaluations.")
632
 
633
  task_set, model_set = set(), set()
634
  for tm in directories_present: