Upload TestEnsembleQAPipeline
Browse files- 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 |
-
|
27 |
-
|
28 |
-
|
|
|
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):
|