DontPlanToEnd commited on
Commit
ec6e44c
1 Parent(s): 7287b8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,7 +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
- 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
16
  df.drop(columns=['Link'], inplace=True)
17
  return df
@@ -134,4 +135,4 @@ with GraInter:
134
  """)
135
 
136
  # Launch the Gradio app
137
- GraInter.launch()
 
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
 
135
  """)
136
 
137
  # Launch the Gradio app
138
+ GraInter.launch()