Spaces:
Running
Running
Download src/styles/base.py from launch/MLRC_Bench: direct link, hf CLI and curl.
- Browser
- Download file 620 Bytes
-
https://huggingface.co/spaces/launch/MLRC_Bench/resolve/main/src/styles/base.py
- Command line
-
hf download hf://spaces/launch/MLRC_Bench/src/styles/base.py
-
curl -L -o base.py https://huggingface.co/spaces/launch/MLRC_Bench/resolve/main/src/styles/base.py
620 Bytes
| """ | |
| Base styles for the leaderboard application. | |
| """ | |
| import streamlit as st | |
| from src.styles.theme import get_theme_css | |
| from src.styles.components import get_all_component_styles | |
| from src.styles.tables import get_all_table_styles | |
| def load_all_styles(): | |
| """ | |
| Load and apply all CSS styles for the application | |
| """ | |
| styles = [ | |
| get_theme_css(), | |
| get_all_component_styles(), | |
| get_all_table_styles() | |
| ] | |
| combined_styles = "\n".join(styles) | |
| # Apply all styles to the page | |
| st.markdown( | |
| f"<style>{combined_styles}</style>", | |
| unsafe_allow_html=True | |
| ) |