Spaces:
Running
Running
Change no feature or token to be a warning
Browse files
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 |
-
|
630 |
elif num_py_files == 1:
|
631 |
-
|
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:
|