Spaces:
Runtime error
Runtime error
meg-huggingface
commited on
Commit
•
37ce445
1
Parent(s):
587d45f
update parse_requests.py
Browse files- parse_requests.py +1 -0
parse_requests.py
CHANGED
@@ -7,6 +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 |
|
|
|
7 |
|
8 |
def normalize_task(task):
|
9 |
# Makes assumption about how the task names are being written, and called.
|
10 |
+
task = '_'.join(task.split()).lower()
|
11 |
return '_'.join(task.split('-')).lower()
|
12 |
|
13 |
|