Skip to content

Commit

Permalink
indent template addition
Browse files Browse the repository at this point in the history
Signed-off-by: dafnapension <[email protected]>
  • Loading branch information
dafnapension committed Dec 14, 2024
1 parent 7329c79 commit 781f19c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/unitxt/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,19 +460,7 @@ def reset_pipeline(self):
)
else:
raise ValueError("num_demos must be int or List[int]")
# here for backward compatibility. to check
if isinstance(self.template, list):
self.verbalization.steps.append(
ApplyRandomTemplate(
templates=self.template, demos_field=self.demos_field
)
)
else:
self.verbalization.steps.append(
ApplySingleTemplate(
template=self.template, demos_field=self.demos_field
)
)

else:
self.verbalization.steps.append(
Set(
Expand Down

0 comments on commit 781f19c

Please sign in to comment.