ling99 commited on
Commit
a618ddf
·
verified ·
1 Parent(s): a2c1a2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -55,7 +55,10 @@ def load_leaderboard_table_csv(filename, add_hyperlink=True):
55
  for j in range(len(heads)):
56
  item = {}
57
  for h, v in zip(heads, row):
58
- item[h] = v
 
 
 
59
  if add_hyperlink:
60
  item["Model"] = model_hyperlink(item["Model"], item["Link"])
61
  rows.append(item)
 
55
  for j in range(len(heads)):
56
  item = {}
57
  for h, v in zip(heads, row):
58
+ if h != "Model" and h != "Link" and h != "Language Model" and h != "Open Source":
59
+ item[h] = int(v)
60
+ else:
61
+ item[h] = v
62
  if add_hyperlink:
63
  item["Model"] = model_hyperlink(item["Model"], item["Link"])
64
  rows.append(item)