ling99 commited on
Commit
de34c2e
·
verified ·
1 Parent(s): fbaf0ee

Update app.py

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