param-bharat commited on
Commit
59a4873
·
verified ·
1 Parent(s): 55ef942

Upload NLIScorer

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -0
pipeline.py CHANGED
@@ -366,6 +366,7 @@ class NLIScorer(Pipeline):
366
  if "task_type" in kwargs:
367
  preprocess_kwargs["task_type"] = kwargs.get("task_type")
368
  postprocess_kwargs["task_type"] = kwargs.get("task_type")
 
369
  return preprocess_kwargs, {}, postprocess_kwargs
370
 
371
  def preprocess(self, inputs, task_type=None):
 
366
  if "task_type" in kwargs:
367
  preprocess_kwargs["task_type"] = kwargs.get("task_type")
368
  postprocess_kwargs["task_type"] = kwargs.get("task_type")
369
+ postprocess_kwargs["threshold"] = kwargs.get("threshold")
370
  return preprocess_kwargs, {}, postprocess_kwargs
371
 
372
  def preprocess(self, inputs, task_type=None):