Skip to content

Commit

Permalink
Merge branch 'main' into spar_mt_prompt_invar
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristyKoh committed Apr 12, 2023
2 parents d91acac + 89b2346 commit 715bba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elk/extraction/prompt_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def _convert_to_prompts(
fewshot_iter: Optional[Iterator[list[dict]]] = None,
) -> dict[str, Any]:
"""Prompt-generating function to pass to `IterableDataset.map`."""
label = assert_type(int, example[label_column])
assert_type(int, example[label_column])
prompts = []
templates = list(prompter.templates.values())
if num_variants < len(templates):
Expand Down

0 comments on commit 715bba8

Please sign in to comment.