Spaces:
Sleeping
Sleeping
I766446
Add EasyTask/MediumTask/HardTask entrypoints; top-level grader fns; fix /grade to call grade_episode
37b8bd7 Download tasks/medium/task.py from infoclassifier/InfoClassifier: direct link, hf CLI and curl.
- Browser
- Download file 732 Bytes
-
https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/tasks/medium/task.py
- Command line
-
hf download hf://spaces/infoclassifier/InfoClassifier/tasks/medium/task.py
-
curl -L -o task.py https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/tasks/medium/task.py
732 Bytes
| """tasks/medium/task.py — Medium difficulty task definition.""" | |
| TASK_ID = "medium" | |
| DESCRIPTION = ( | |
| "Content moderation — medium difficulty. " | |
| "Agent must verify claims, evaluate mixed evidence sources, and make a " | |
| "moderation decision (allow / flag / remove). " | |
| "Content is partially true or misleading — nuanced reasoning required." | |
| ) | |
| SCORE_RANGE = [0.0, 1.0] | |
| N_SCENARIOS = 5 | |
| class MediumTask: | |
| """OpenEnv task entrypoint for medium difficulty.""" | |
| task_id = TASK_ID | |
| description = DESCRIPTION | |
| score_range = SCORE_RANGE | |
| n_scenarios = N_SCENARIOS | |
| def grade(self, episode: dict) -> float: | |
| from tasks.medium.grader import grade_episode | |
| return grade_episode(episode) | |