Skip to content

Commit

Permalink
Fix function name (as_list)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdiazmel committed Jan 29, 2025
1 parent 6b4de76 commit c791903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion community_tasks/french_evals.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from lighteval.tasks.extended.ifeval.main import ifeval_metrics
from lighteval.tasks.lighteval_task import LightevalTaskConfig
from lighteval.tasks.requests import Doc
from lighteval.utils.utils import as_list


# Ifeval-fr prompt function
Expand Down Expand Up @@ -88,7 +89,7 @@ def prompt_bac_fr(line, task_name: str = None):
return Doc(
task_name=task_name,
query=prompt,
choices=list(line["Choix"]),
choices=as_list(line["Choix"]),
gold_index=line["Choix"].index(line["Choix correct"]),
instruction="",
)
Expand Down

0 comments on commit c791903

Please sign in to comment.