Upload templates.py with huggingface_hub
Browse files- templates.py +3 -3
templates.py
CHANGED
@@ -101,8 +101,8 @@ class CharacterSizeLimiter(Artifact):
|
|
101 |
|
102 |
class RenderTemplatedICL(RenderAutoFormatTemplate):
|
103 |
instruction: Instruction = None
|
104 |
-
input_prefix: str = "
|
105 |
-
output_prefix: str = "
|
106 |
target_prefix: str = " "
|
107 |
instruction_prefix: str = ""
|
108 |
demos_field: str = None
|
@@ -190,7 +190,7 @@ class OutputQuantizingTemplate(InputOutputTemplate):
|
|
190 |
class MultiLabelTemplate(InputOutputTemplate):
|
191 |
labels_field: str = "labels"
|
192 |
labels_seprator: str = ", "
|
193 |
-
postprocessors = ["processors.
|
194 |
output_format = "{labels}"
|
195 |
empty_label = "None"
|
196 |
|
|
|
101 |
|
102 |
class RenderTemplatedICL(RenderAutoFormatTemplate):
|
103 |
instruction: Instruction = None
|
104 |
+
input_prefix: str = ""
|
105 |
+
output_prefix: str = ""
|
106 |
target_prefix: str = " "
|
107 |
instruction_prefix: str = ""
|
108 |
demos_field: str = None
|
|
|
190 |
class MultiLabelTemplate(InputOutputTemplate):
|
191 |
labels_field: str = "labels"
|
192 |
labels_seprator: str = ", "
|
193 |
+
postprocessors = ["processors.to_list_by_comma"]
|
194 |
output_format = "{labels}"
|
195 |
empty_label = "None"
|
196 |
|