Spaces:
Running
Running
fixed bugs
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def majority_vote(question, num_iterations=10):
|
|
27 |
all_answer=[]
|
28 |
for _ in range(num_iterations):
|
29 |
prediction = get_prediction(question)
|
30 |
-
answer=postprocess_completion(
|
31 |
all_predictions.append(prediction)
|
32 |
all_answer.append(answer)
|
33 |
majority_voted_pred = max(set(all_predictions), key=all_predictions.count)
|
|
|
27 |
all_answer=[]
|
28 |
for _ in range(num_iterations):
|
29 |
prediction = get_prediction(question)
|
30 |
+
answer=postprocess_completion(prediction,True,True)
|
31 |
all_predictions.append(prediction)
|
32 |
all_answer.append(answer)
|
33 |
majority_voted_pred = max(set(all_predictions), key=all_predictions.count)
|