Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,6 @@ UGI_COLS = [
|
|
| 10 |
def load_leaderboard_data(csv_file_path):
|
| 11 |
try:
|
| 12 |
df = pd.read_csv(csv_file_path)
|
| 13 |
-
# Truncate model names and add tooltips
|
| 14 |
-
df['Model'] = df.apply(lambda row: f'<div style="max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" title="{row["Model"]}">{row["Model"]}</div>' if pd.notna(row["Model"]) else "", axis=1)
|
| 15 |
# Create hyperlinks in the Model column using HTML <a> tags with inline CSS for styling
|
| 16 |
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)
|
| 17 |
# Drop the 'Link' column as it's no longer needed
|
|
|
|
| 10 |
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 |
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 |
# Drop the 'Link' column as it's no longer needed
|