from dataclasses import dataclass from enum import Enum @dataclass class Task: benchmark: str metric: str col_name: str # Select your tasks here # --------------------------------------------------- class Tasks(Enum): # task_key in the json file, metric_key in the json file, name to display in the leaderboard task0 = Task("lid", "acc", "LID (ACC)") task1 = Task("topic_classification", "acc", "TC (ACC)") task2 = Task("rc_qa", "acc", "RC-QA (ACC)") task3 = Task("nli", "acc", "NLI (ACC)") task4 = Task("machine_translation_xx_eng", "chrf", "MT (xx-en) (CHRF++)") task5 = Task("machine_translation_eng_xx", "chrf", "MT (en-xx) (CHRF++)") class SpeechTasks(Enum): # task_key in the json file, metric_key in the json file, name to display in the leaderboard task0 = Task("lid", "acc", "LID (ACC)") task1 = Task("topic_classification", "acc", "TC (ACC)") task2 = Task("rc_qa", "acc", "RC-QA (ACC)") task3 = Task("asr", "cer", "ASR (100-CER)") task4 = Task("s2tt_xx_eng", "chrf", "S2TT (xx-en) (CHRF++)") #task5 = Task("s2tt_eng_xx", "chrf", "S2TT (en-xx) (CHRF++)") NUM_FEWSHOT = 0 # Change with your few shot # --------------------------------------------------- # Your leaderboard name TITLE = """