terryyz commited on
Commit
4c2c8e2
1 Parent(s): b42c9ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -179,9 +179,6 @@ def evaluate(
179
  eval_results[result["task_id"]].append(result)
180
  del future, result
181
  gc.collect()
182
-
183
- del problems, futures
184
- gc.collect()
185
 
186
  # sort the results for each problem by completion_id
187
  for task_id, task_results in eval_results.items():
@@ -215,7 +212,10 @@ def evaluate(
215
  for k in pass_k
216
  if total.min() >= k
217
  })
218
-
 
 
 
219
  pass_at_k["model"] = os.path.basename(samples).split("--bigcodebench-")[0]
220
  pass_at_k["split"] = split
221
  pass_at_k["subset"] = subset
 
179
  eval_results[result["task_id"]].append(result)
180
  del future, result
181
  gc.collect()
 
 
 
182
 
183
  # sort the results for each problem by completion_id
184
  for task_id, task_results in eval_results.items():
 
212
  for k in pass_k
213
  if total.min() >= k
214
  })
215
+
216
+ del problems, futures
217
+ gc.collect()
218
+
219
  pass_at_k["model"] = os.path.basename(samples).split("--bigcodebench-")[0]
220
  pass_at_k["split"] = split
221
  pass_at_k["subset"] = subset