from enum import Enum from dataclasses import dataclass # Define TaskInfo and Tasks as before @dataclass class TaskInfo: benchmark: str col_name: str metric: str # Replace these with actual subjects from your dataset class Tasks(Enum): History = TaskInfo(benchmark='History', col_name='History', metric='accuracy') Mathematics = TaskInfo(benchmark='Mathematics', col_name='Mathematics', metric='accuracy') Science = TaskInfo(benchmark='Science', col_name='Science', metric='accuracy') Geography = TaskInfo(benchmark='Geography', col_name='Geography', metric='accuracy') Literature = TaskInfo(benchmark='Literature', col_name='Literature', metric='accuracy') Art = TaskInfo(benchmark='Art', col_name='Art', metric='accuracy') Physics = TaskInfo(benchmark='Physics', col_name='Physics', metric='accuracy') Chemistry = TaskInfo(benchmark='Chemistry', col_name='Chemistry', metric='accuracy') Biology = TaskInfo(benchmark='Biology', col_name='Biology', metric='accuracy') ComputerScience = TaskInfo(benchmark='Computer Science', col_name='Computer Science', metric='accuracy') # Now include the variables expected by app.py TITLE = """