dbalasub commited on
Commit
9f3aa68
1 Parent(s): ffea356

Upload TestEnsembleQAPipeline

Browse files
Files changed (1) hide show
  1. test_ensemble.py +5 -3
test_ensemble.py CHANGED
@@ -22,10 +22,12 @@ class TestEnsembleQAPipeline(Text2TextGenerationPipeline):
22
 
23
  def postprocess(self, model_outputs):
24
  results = {}
 
25
  for output in model_outputs:
26
- guess_text = output['guess']
27
- confidence = output['confidence']
28
- results = {'guess': guess_text, 'confidence': confidence}
 
29
  return results
30
  class QuizBowlModel:
31
  def __init__(self):
 
22
 
23
  def postprocess(self, model_outputs):
24
  results = {}
25
+ print(model_outputs)
26
  for output in model_outputs:
27
+ print(output)
28
+ guess_text = output[0]
29
+ confidence = output[1]
30
+ results = {'guess': guess_text, 'confidence': confidence}
31
  return results
32
  class QuizBowlModel:
33
  def __init__(self):