Skip to content

Commit 07f1e6e

Browse files
antoineedySamoed
andauthored
fix: benchmark references links (#3560)
* fix: external links in hf space * try to fix model name --------- Co-authored-by: Roman Solomatin <[email protected]>
1 parent b22078e commit 07f1e6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mteb/leaderboard/app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ def _update_description(
107107
description += f" - **Number of task types**: {n_task_types}\n"
108108
description += f" - **Number of domains**: {n_domains}\n"
109109
if benchmark.reference is not None:
110-
description += f"\n[Click for More Info]({benchmark.reference})"
110+
description += (
111+
f'\n<a href="{benchmark.reference}" target="_blank">Click for More Info</a>'
112+
)
111113

112114
return description
113115

@@ -137,7 +139,7 @@ def _update_task_info(task_names: str) -> gr.DataFrame:
137139
df["languages"] = df["languages"].map(_format_list)
138140
df = df.sort_values("name")
139141
df["domains"] = df["domains"].map(_format_list)
140-
df["name"] = "[" + df["name"] + "](" + df["reference"] + ")"
142+
df["name"] = f'<a href="{df["reference"]}" target="_blank">{df["name"]}</a>'
141143
df["modalities"] = df["modalities"].map(_format_list)
142144
df = df.rename(
143145
columns={

0 commit comments

Comments
 (0)