pminervini commited on
Commit
af0651e
1 Parent(s): 310805a
Files changed (1) hide show
  1. src/display/formatting.py +5 -3
src/display/formatting.py CHANGED
@@ -7,6 +7,7 @@ from huggingface_hub.hf_api import ModelInfo
7
 
8
  API = HfApi()
9
 
 
10
  def model_hyperlink(link, model_name):
11
  return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
12
 
@@ -14,10 +15,11 @@ def model_hyperlink(link, model_name):
14
  def make_clickable_model(model_name):
15
  link = f"https://huggingface.co/{model_name}"
16
 
17
- details_model_name = model_name.replace("/", "__")
18
- details_link = f"https://huggingface.co/datasets/open-llm-leaderboard/details_{details_model_name}"
19
 
20
- return model_hyperlink(link, model_name) + " " + model_hyperlink(details_link, "📑")
 
21
 
22
 
23
  def styled_error(error):
 
7
 
8
  API = HfApi()
9
 
10
+
11
  def model_hyperlink(link, model_name):
12
  return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
13
 
 
15
  def make_clickable_model(model_name):
16
  link = f"https://huggingface.co/{model_name}"
17
 
18
+ # details_model_name = model_name.replace("/", "__")
19
+ # details_link = f"https://huggingface.co/datasets/open-llm-leaderboard/details_{details_model_name}"
20
 
21
+ # return model_hyperlink(link, model_name) + " " + model_hyperlink(details_link, "📑")
22
+ return model_hyperlink(link, model_name)
23
 
24
 
25
  def styled_error(error):