Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Fix enumerate bug

Magnus Müller3f0861b5f33c
diff --git a/eval/comprehensive_judge.py b/eval/comprehensive_judge.py
index 2b62220f4..d49411609 100644
--- a/eval/comprehensive_judge.py
+++ b/eval/comprehensive_judge.py
@@ -592,8 +592,8 @@ async def judge_with_repeat_and_average(
# concat reasoning with 1. and 2....
reasoning = ''
- for eval in evaluations:
- reasoning += f'Judge {i + 1} score: {eval.final_score}\n{eval.reasoning}\n'
+ for j, eval in enumerate(evaluations):
+ reasoning += f'Judge {j + 1} score: {eval.final_score}\n{eval.reasoning}\n'
# Create averaged result
return JudgeResult(