Spaces:
Running
Running
Download cref/navigation.py from autogluon/fev-bench: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/spaces/autogluon/fev-bench/resolve/main/cref/navigation.py
- Command line
-
hf download hf://spaces/autogluon/fev-bench/cref/navigation.py
-
curl -L -o navigation.py https://huggingface.co/spaces/autogluon/fev-bench/resolve/main/cref/navigation.py
702 Bytes
| import streamlit as st | |
| PAGES = [ | |
| ("leaderboard", "Leaderboard", ":material/leaderboard:"), | |
| ("breakdown", "Breakdown", ":material/grid_view:"), | |
| ("trends", "Trends", ":material/show_chart:"), | |
| ("about", "About", ":material/info:"), | |
| ("join", "Join the competition", ":material/group_add:"), | |
| ] | |
| def pages() -> list[st.Page]: | |
| return [ | |
| st.Page( | |
| f"cref/pages/{name}.py", | |
| title=title, | |
| icon=icon, | |
| url_path="cref" if name == "leaderboard" else f"cref-{name}", | |
| ) | |
| for name, title, icon in PAGES | |
| ] | |
| def page_config() -> None: | |
| st.set_page_config(page_title="CREF leaderboard", page_icon="📈", layout="wide") | |