inoki-giskard commited on
Commit
6565530
β€’
1 Parent(s): 61fc9c6

Fix links in leaderboard

Browse files
Files changed (1) hide show
  1. app_leaderboard.py +3 -3
app_leaderboard.py CHANGED
@@ -58,17 +58,17 @@ def get_display_df(df):
58
  columns = display_df.columns.tolist()
59
  if "model_id" in columns:
60
  display_df["model_id"] = display_df["model_id"].apply(
61
- lambda x: f'<p href="https://huggingface.co/{x}" style="color:blue">πŸ”—{x}</p>'
62
  )
63
  # style all elements in the dataset_id column
64
  if "dataset_id" in columns:
65
  display_df["dataset_id"] = display_df["dataset_id"].apply(
66
- lambda x: f'<p href="https://huggingface.co/datasets/{x}" style="color:blue">πŸ”—{x}</p>'
67
  )
68
  # style all elements in the report_link column
69
  if "report_link" in columns:
70
  display_df["report_link"] = display_df["report_link"].apply(
71
- lambda x: f'<p href="{x}" style="color:blue">πŸ”—{x}</p>'
72
  )
73
  return display_df
74
 
 
58
  columns = display_df.columns.tolist()
59
  if "model_id" in columns:
60
  display_df["model_id"] = display_df["model_id"].apply(
61
+ lambda x: f'<a href="https://huggingface.co/{x}" target="_blank" style="color:blue">πŸ”—{x}</a>'
62
  )
63
  # style all elements in the dataset_id column
64
  if "dataset_id" in columns:
65
  display_df["dataset_id"] = display_df["dataset_id"].apply(
66
+ lambda x: f'<a href="https://huggingface.co/datasets/{x}" target="_blank" style="color:blue">πŸ”—{x}</a>'
67
  )
68
  # style all elements in the report_link column
69
  if "report_link" in columns:
70
  display_df["report_link"] = display_df["report_link"].apply(
71
+ lambda x: f'<a href="{x}" target="_blank" style="color:blue">πŸ”—{x}</a>'
72
  )
73
  return display_df
74