Jayant-Kernel commited on
Commit
ba97ba8
·
unverified ·
1 Parent(s): b7f42c1

fix: count skipped rows toward progress interval

Browse files
Files changed (1) hide show
  1. scripts/generate_distractors.py +2 -2
scripts/generate_distractors.py CHANGED
@@ -87,11 +87,11 @@ def main() -> None:
87
  iteration_count = 0
88
 
89
  for i, row in enumerate(level1_rows):
 
 
90
  if row["id"] in existing:
91
  continue
92
 
93
- iteration_count += 1
94
-
95
  try:
96
  distractors = _generate_distractors(client, row["question"], row["ground_truth"])
97
  except Exception as e:
 
87
  iteration_count = 0
88
 
89
  for i, row in enumerate(level1_rows):
90
+ iteration_count += 1
91
+
92
  if row["id"] in existing:
93
  continue
94
 
 
 
95
  try:
96
  distractors = _generate_distractors(client, row["question"], row["ground_truth"])
97
  except Exception as e: