lewtun HF staff commited on
Commit
80bc608
1 Parent(s): 8f675eb

Sort tasks alphabetically

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):