Spaces:
Running
Running
added backdooring
Browse files
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)
|