Spaces:
Sleeping
Sleeping
I766446
Add EasyTask/MediumTask/HardTask entrypoints; top-level grader fns; fix /grade to call grade_episode
37b8bd7 Download tasks/hard/task.py from infoclassifier/InfoClassifier: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/tasks/hard/task.py
- Command line
-
hf download hf://spaces/infoclassifier/InfoClassifier/tasks/hard/task.py
-
curl -L -o task.py https://huggingface.co/spaces/infoclassifier/InfoClassifier/resolve/main/tasks/hard/task.py
721 Bytes
| """tasks/hard/task.py — Hard difficulty task definition.""" | |
| TASK_ID = "hard" | |
| DESCRIPTION = ( | |
| "Content moderation — hard difficulty. " | |
| "Agent must reason over conflicting evidence from credible sources and " | |
| "make a moderation decision (allow / flag / remove). " | |
| "Ground truth is ambiguous — all scoring dimensions count equally." | |
| ) | |
| SCORE_RANGE = [0.0, 1.0] | |
| N_SCENARIOS = 5 | |
| class HardTask: | |
| """OpenEnv task entrypoint for hard difficulty.""" | |
| task_id = TASK_ID | |
| description = DESCRIPTION | |
| score_range = SCORE_RANGE | |
| n_scenarios = N_SCENARIOS | |
| def grade(self, episode: dict) -> float: | |
| from tasks.hard.grader import grade_episode | |
| return grade_episode(episode) | |