Add curricula status to gallery (#367)

* Add curricula status to gallery

* lint
This commit is contained in:
Rich Jones 2025-03-14 16:16:26 +01:00 committed by GitHub
parent 4006200132
commit 3e0254afea

View file

@ -5,7 +5,7 @@ import textwrap
from pathlib import Path
import reasoning_gym.code.bf
from reasoning_gym.factory import DATASETS, create_dataset
from reasoning_gym.factory import DATASETS, create_dataset, has_curriculum
def generate_gallery() -> str:
@ -20,7 +20,8 @@ def generate_gallery() -> str:
for name in sorted(DATASETS.keys()):
# Create anchor link
anchor = name.replace(" ", "-").lower()
content.append(f"- [{name}](#{anchor})\n")
has_curr = "" if has_curriculum(name) else ""
content.append(f"- [{name}](#{anchor}) {has_curr}\n")
content.append("\n")
# Add examples for each dataset