Jack Monas
commited on
Commit
·
4b8fcf8
1
Parent(s):
a3ec126
rules
Browse files
app.py
CHANGED
@@ -64,7 +64,6 @@ def scoring_section():
|
|
64 |
"respective Hugging Face submission servers. Below is a preview of the overall leaderboard format:"
|
65 |
)
|
66 |
|
67 |
-
# Sample leaderboard preview
|
68 |
data = {
|
69 |
"Rank": [1, 2, 3],
|
70 |
"Team Name": ["Team Alpha", "Team Beta", "Team Gamma"],
|
@@ -73,8 +72,44 @@ def scoring_section():
|
|
73 |
"Evaluation Points": [20, 14, 10],
|
74 |
"Total Points": [40, 28, 20],
|
75 |
}
|
|
|
76 |
leaderboard_df = pd.DataFrame(data)
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
def main():
|
80 |
st.set_page_config(page_title="World Model Challenge")
|
|
|
64 |
"respective Hugging Face submission servers. Below is a preview of the overall leaderboard format:"
|
65 |
)
|
66 |
|
|
|
67 |
data = {
|
68 |
"Rank": [1, 2, 3],
|
69 |
"Team Name": ["Team Alpha", "Team Beta", "Team Gamma"],
|
|
|
72 |
"Evaluation Points": [20, 14, 10],
|
73 |
"Total Points": [40, 28, 20],
|
74 |
}
|
75 |
+
|
76 |
leaderboard_df = pd.DataFrame(data)
|
77 |
+
|
78 |
+
# Style the DataFrame for a cleaner look
|
79 |
+
styled_df = leaderboard_df.style.set_table_styles([
|
80 |
+
{
|
81 |
+
"selector": "th",
|
82 |
+
"props": [
|
83 |
+
("background-color", "#4C4C4C"),
|
84 |
+
("color", "#FFFFFF"),
|
85 |
+
("text-align", "center"),
|
86 |
+
("font-weight", "bold"),
|
87 |
+
("padding", "6px"),
|
88 |
+
]
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"selector": "td",
|
92 |
+
"props": [
|
93 |
+
("text-align", "center"),
|
94 |
+
("padding", "6px"),
|
95 |
+
]
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"selector": "tr:nth-child(even)",
|
99 |
+
"props": [
|
100 |
+
("background-color", "#F9F9F9"),
|
101 |
+
]
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"selector": "tr:nth-child(odd)",
|
105 |
+
"props": [
|
106 |
+
("background-color", "#FFFFFF"),
|
107 |
+
]
|
108 |
+
}
|
109 |
+
]).hide_index()
|
110 |
+
|
111 |
+
# Display the styled DataFrame as HTML
|
112 |
+
st.write(styled_df.to_html(), unsafe_allow_html=True)
|
113 |
|
114 |
def main():
|
115 |
st.set_page_config(page_title="World Model Challenge")
|