From 781f19c03ff1cc7c5390db1ba17e8c85bf84759b Mon Sep 17 00:00:00 2001 From: dafnapension Date: Sat, 14 Dec 2024 14:18:01 +0200 Subject: [PATCH] indent template addition Signed-off-by: dafnapension --- src/unitxt/standard.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/unitxt/standard.py b/src/unitxt/standard.py index ca396b29c..e57bd4271 100644 --- a/src/unitxt/standard.py +++ b/src/unitxt/standard.py @@ -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(