Elron commited on
Commit
fc399ba
1 Parent(s): ecc60de

Upload templates.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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 = "Input: "
105
- output_prefix: str = "Output:"
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.to_list"]
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