Spaces:
Running
Running
inoki-giskard
commited on
Commit
β’
6565530
1
Parent(s):
61fc9c6
Fix links in leaderboard
Browse files- 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'<
|
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'<
|
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'<
|
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 |
|