devingulliver commited on
Commit
eee8ddd
1 Parent(s): 6d00bfb

Add model links

Browse files

Once again, brazenly borrowed from the Open LLM Leaderboard

Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -9,6 +9,7 @@ webhook_url = os.environ.get("WEBHOOK_URL")
9
 
10
  def filter_table(name, type, arch, license):
11
  tmp = data
 
12
  if name:
13
  tmp = tmp[tmp["Name"].str.contains(name)]
14
  if type:
@@ -17,6 +18,8 @@ def filter_table(name, type, arch, license):
17
  tmp = tmp[tmp["Architecture"].isin(arch)]
18
  if license:
19
  tmp = tmp[tmp["License"].isin(license)]
 
 
20
  return tmp
21
 
22
  def submit_model(name):
 
9
 
10
  def filter_table(name, type, arch, license):
11
  tmp = data
12
+
13
  if name:
14
  tmp = tmp[tmp["Name"].str.contains(name)]
15
  if type:
 
18
  tmp = tmp[tmp["Architecture"].isin(arch)]
19
  if license:
20
  tmp = tmp[tmp["License"].isin(license)]
21
+
22
+ df["Name"] = df["Name"].apply(lambda x: f'<a target="_blank" href="https://huggingface.co/{x}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{x}</a>')
23
  return tmp
24
 
25
  def submit_model(name):