Pra-tham commited on
Commit
b7139fd
1 Parent(s): 8050f4c

fixed bugs

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(predicted_answer,True,True)
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)