Spaces:
Sleeping
Sleeping
I766446
Add EasyTask/MediumTask/HardTask entrypoints; top-level grader fns; fix /grade to call grade_episode
37b8bd7 Download tasks/easy/task.py from infoclassifier/InfoClassifier: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/tasks/easy/task.py
- Command line
-
hf download hf://spaces/infoclassifier/InfoClassifier/tasks/easy/task.py
-
curl -L -o task.py https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/tasks/easy/task.py
702 Bytes
| """tasks/easy/task.py — Easy difficulty task definition.""" | |
| TASK_ID = "easy" | |
| DESCRIPTION = ( | |
| "Content moderation — easy difficulty. " | |
| "Agent must verify claims against authoritative sources and make a " | |
| "moderation decision (allow / flag / remove). " | |
| "Correct decisions are clear-cut with overwhelming evidence." | |
| ) | |
| SCORE_RANGE = [0.0, 1.0] | |
| N_SCENARIOS = 5 | |
| class EasyTask: | |
| """OpenEnv task entrypoint for easy difficulty.""" | |
| task_id = TASK_ID | |
| description = DESCRIPTION | |
| score_range = SCORE_RANGE | |
| n_scenarios = N_SCENARIOS | |
| def grade(self, episode: dict) -> float: | |
| from tasks.easy.grader import grade_episode | |
| return grade_episode(episode) | |