DontPlanToEnd
commited on
Commit
•
89e8eb8
1
Parent(s):
ec6e44c
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ def load_leaderboard_data(csv_file_path):
|
|
11 |
try:
|
12 |
df = pd.read_csv(csv_file_path)
|
13 |
# Create hyperlinks in the Model column using HTML <a> tags with inline CSS for styling
|
14 |
-
|
15 |
-
df['Model'] = df.apply(lambda row: f'<a href="{row["Link"]}" target="_blank" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{row["Model"]}</a>' if pd.notna(row["Link"]) else row["Model"], axis=1)
|
16 |
# Drop the 'Link' column as it's no longer needed
|
17 |
df.drop(columns=['Link'], inplace=True)
|
18 |
return df
|
|
|
11 |
try:
|
12 |
df = pd.read_csv(csv_file_path)
|
13 |
# Create hyperlinks in the Model column using HTML <a> tags with inline CSS for styling
|
14 |
+
df['Model'] = df.apply(lambda row: f'<a href="{row["Link"]}" target="_blank" style="color: blue; text-decoration: none;">{row["Model"]}</a>' if pd.notna(row["Link"]) else row["Model"], axis=1)
|
15 |
+
#df['Model'] = df.apply(lambda row: f'<a href="{row["Link"]}" target="_blank" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{row["Model"]}</a>' if pd.notna(row["Link"]) else row["Model"], axis=1)
|
16 |
# Drop the 'Link' column as it's no longer needed
|
17 |
df.drop(columns=['Link'], inplace=True)
|
18 |
return df
|