Spaces:
Running
Running
Update app.py
Browse files9 unmodified lines101112131415160 unmodified lines1761771781791801811829 unmodified linesfrom datetime import datetimefrom typing import Any, Dict, List, Tuplefrom warnings import warnimport numpy as np160 unmodified linesresult = future.result()remainings.remove(result["_identifier"])eval_results[result["task_id"]].append(result)# sort the results for each problem by completion_idfor task_id, task_results in eval_results.items():task_results.sort(key=lambda x: x["completion_id"])9 unmodified lines10111213141516160 unmodified lines1771781791801811821831841851861871889 unmodified linesfrom datetime import datetimefrom typing import Any, Dict, List, Tuplefrom warnings import warnimport gcimport numpy as np160 unmodified linesresult = future.result()remainings.remove(result["_identifier"])eval_results[result["task_id"]].append(result)del future, resultgc.collect()del problems, futuresgc.collect()# sort the results for each problem by completion_idfor task_id, task_results in eval_results.items():task_results.sort(key=lambda x: x["completion_id"])
app.py+6