albertvillanova HF staff commited on
Commit
96f60e1
1 Parent(s): 729af67

Fix load_results for None data frames

Browse files
Files changed (1) hide show
  1. src/results.py +1 -0
src/results.py CHANGED
@@ -50,6 +50,7 @@ async def load_results_dataframe(model_id, result_paths_per_model=None):
50
 
51
  async def load_results(model_ids, result_paths_per_model=None):
52
  dfs = await asyncio.gather(*[load_results_dataframe(model_id, result_paths_per_model) for model_id in model_ids])
 
53
  if dfs:
54
  return pd.concat(dfs)
55
 
 
50
 
51
  async def load_results(model_ids, result_paths_per_model=None):
52
  dfs = await asyncio.gather(*[load_results_dataframe(model_id, result_paths_per_model) for model_id in model_ids])
53
+ dfs = [df for df in dfs if df is not None]
54
  if dfs:
55
  return pd.concat(dfs)
56