Spaces:
Runtime error
Runtime error
meg-huggingface
commited on
Commit
·
587d45f
1
Parent(s):
7de9b42
Reading in a task name with a hyphen OR a space, changing it underscore for the hydra config model.
Browse files- parse_requests.py +1 -1
parse_requests.py
CHANGED
@@ -7,7 +7,7 @@ requests_dataset = load_dataset("AIEnergyScore/requests_debug", split="test")
|
|
7 |
|
8 |
def normalize_task(task):
|
9 |
# Makes assumption about how the task names are being written, and called.
|
10 |
-
return '_'.join(task.split()).lower()
|
11 |
|
12 |
|
13 |
requests_dset = requests_dataset.to_pandas()
|
|
|
7 |
|
8 |
def normalize_task(task):
|
9 |
# Makes assumption about how the task names are being written, and called.
|
10 |
+
return '_'.join(task.split('-')).lower()
|
11 |
|
12 |
|
13 |
requests_dset = requests_dataset.to_pandas()
|