import sqlite3 | |
import pandas as pd | |
def load_leaderboard(db_path): | |
df = pd.read_csv(db_path) # Update table name if needed | |
return df | |
# custom_css = """ | |
# h1, { | |
# font-size: 48px !important; /* Increase heading sizes */ | |
# line-height: 2.0 !important; /* Increase line spacing */ | |
# text-align: center !important; /* Center align headings */ | |
# } | |
# .gradio-container { | |
# padding: 30px !important; /* Increase padding around the UI */ | |
# } | |
# .markdown-body p { | |
# font-size: 28px !important; /* Increase text size */ | |
# line-height: 2.0 !important; /* More space between lines */ | |
# } | |
# .gradio-container .gr-block { | |
# margin-bottom: 20px !important; /* Add more space between elements */ | |
# } | |
# """ | |
custom_css = """ | |
#leaderboard-table th .header-content { | |
white-space: nowrap; | |
} | |
""" | |