IlyasMoutawwakil HF staff commited on
Commit
da05480
β€’
1 Parent(s): a2f7457

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -37,9 +37,9 @@ open_llm_race_dataset = (
37
  )
38
  # filter
39
  open_llm_race_dataset["date"] = open_llm_race_dataset["date"].dt.strftime("%Y-%m-%d")
40
- # open_llm_race_dataset = open_llm_race_dataset[
41
- # open_llm_race_dataset["date"] >= "2023-07-10"
42
- # ]
43
  open_llm_race_dataset = open_llm_race_dataset[["date", "score", "model"]]
44
  # drop nan values
45
  open_llm_race_dataset.dropna(inplace=True)
@@ -58,7 +58,7 @@ def get_bar_chart(model_type: str, top_n: int = 10, title: str = ""):
58
 
59
  subset = open_llm_race_dataset[open_llm_race_dataset["type"] == model_type]
60
  subset = subset.pivot(index="date", columns="model", values="score")
61
- # subset.fillna(0, inplace=True)
62
  fig = bcr.bar_chart_race(
63
  subset,
64
  fig=fig,
 
37
  )
38
  # filter
39
  open_llm_race_dataset["date"] = open_llm_race_dataset["date"].dt.strftime("%Y-%m-%d")
40
+ open_llm_race_dataset = open_llm_race_dataset[
41
+ open_llm_race_dataset["date"] >= "2023-07-10"
42
+ ]
43
  open_llm_race_dataset = open_llm_race_dataset[["date", "score", "model"]]
44
  # drop nan values
45
  open_llm_race_dataset.dropna(inplace=True)
 
58
 
59
  subset = open_llm_race_dataset[open_llm_race_dataset["type"] == model_type]
60
  subset = subset.pivot(index="date", columns="model", values="score")
61
+ subset.fillna(0, inplace=True)
62
  fig = bcr.bar_chart_race(
63
  subset,
64
  fig=fig,