Spaces:
Runtime error
Runtime error
Sort tasks alphabetically
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ if Path(".env").is_file():
|
|
15 |
auth_token = os.getenv("HF_HUB_TOKEN")
|
16 |
header = {"Authorization": "Bearer " + auth_token}
|
17 |
|
18 |
-
TASKS = get_dataset_config_names("ought/raft")
|
19 |
# Split and capitalize the task names, e.g. banking_77 => Banking 77
|
20 |
-
FORMATTED_TASK_NAMES = [" ".join(t.capitalize() for t in task.split("_")) for task in TASKS]
|
21 |
|
22 |
|
23 |
def extract_tags(dataset):
|
|
|
15 |
auth_token = os.getenv("HF_HUB_TOKEN")
|
16 |
header = {"Authorization": "Bearer " + auth_token}
|
17 |
|
18 |
+
TASKS = sorted(get_dataset_config_names("ought/raft"))
|
19 |
# Split and capitalize the task names, e.g. banking_77 => Banking 77
|
20 |
+
FORMATTED_TASK_NAMES = sorted([" ".join(t.capitalize() for t in task.split("_")) for task in TASKS])
|
21 |
|
22 |
|
23 |
def extract_tags(dataset):
|