Pra-tham commited on
Commit
6bdbbcf
·
1 Parent(s): 879248b

added backdooring

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -59,6 +59,7 @@ def majority_vote_with_steps(question, num_iterations=10):
59
  for _ in range(num_iterations):
60
  prediction = get_prediction(question)
61
  answer,sucess= postprocess_completion(prediction, return_status=True, last_code_block=True)
 
62
  if sucess:
63
  all_predictions.append(prediction)
64
  all_answers.append(answer)
 
59
  for _ in range(num_iterations):
60
  prediction = get_prediction(question)
61
  answer,sucess= postprocess_completion(prediction, return_status=True, last_code_block=True)
62
+ print(answer,sucess)
63
  if sucess:
64
  all_predictions.append(prediction)
65
  all_answers.append(answer)