Skip to content

Commit a041fb7

Browse files
authored
fix (#122)
1 parent 5780212 commit a041fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lighteval/tasks/lighteval_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def __init__( # noqa: C901
219219
hlog_warn(
220220
f"Be careful you are using custom prompt function {cfg.prompt_function} and not the default one."
221221
)
222-
self.formatter = getattr(module, cfg.prompt_function)
222+
self.formatter = formatter[0]
223223
else:
224224
raise Exception(
225225
f"You defined the prompt function {cfg.prompt_function} several times in the different custom modules you are loading."

0 commit comments

Comments
 (0)