mlabonne commited on
Commit
76f067b
1 Parent(s): 5e4ec7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -100,6 +100,7 @@ def make_df(file_path: str, n_rows: int) -> pd.DataFrame:
100
  .drop_duplicates(subset=["Model"])
101
  .iloc[:n_rows]
102
  )
 
103
  return df
104
 
105
 
@@ -435,6 +436,7 @@ def merge_loop():
435
  return
436
 
437
  df = make_df("open-llm-leaderboard.csv", N_ROWS)
 
438
 
439
  # Sample two models
440
  dir_path = "/data"
 
100
  .drop_duplicates(subset=["Model"])
101
  .iloc[:n_rows]
102
  )
103
+ print(df)
104
  return df
105
 
106
 
 
436
  return
437
 
438
  df = make_df("open-llm-leaderboard.csv", N_ROWS)
439
+ assert not df.empty, "DataFrame is empty. Cannot proceed with merge loop."
440
 
441
  # Sample two models
442
  dir_path = "/data"