Jack Monas
commited on
Commit
·
6468083
1
Parent(s):
108d6f8
rules
Browse files
app.py
CHANGED
@@ -58,63 +58,13 @@ def scoring_section():
|
|
58 |
)
|
59 |
|
60 |
# Overall Leaderboard Section
|
61 |
-
st.markdown("#### Overall Leaderboard")
|
62 |
st.write(
|
63 |
"The overall leaderboard, which shows the total points across all challenges, will go live on **March 10th**. "
|
64 |
"Additionally, each challenge—**Compression**, **Sampling**, and **Evaluation**—will have its own leaderboard on their "
|
65 |
-
"respective Hugging Face submission servers.
|
66 |
)
|
67 |
|
68 |
|
69 |
-
data = {
|
70 |
-
"Rank": [1, 2, 3],
|
71 |
-
"Team Name": ["Team Alpha", "Team Beta", "Team Gamma"],
|
72 |
-
"Compression Points": [10, 7, 5],
|
73 |
-
"Sampling Points": [10, 7, 5],
|
74 |
-
"Evaluation Points": [20, 14, 10],
|
75 |
-
"Total Points": [40, 28, 20],
|
76 |
-
}
|
77 |
-
|
78 |
-
df = pd.DataFrame(data)
|
79 |
-
|
80 |
-
# Custom CSS for a dark-themed table
|
81 |
-
table_css = """
|
82 |
-
<style>
|
83 |
-
.dark-table {
|
84 |
-
border-collapse: collapse;
|
85 |
-
width: 100%;
|
86 |
-
font-size: 1em;
|
87 |
-
margin: 10px 0;
|
88 |
-
color: #dddddd;
|
89 |
-
}
|
90 |
-
.dark-table th {
|
91 |
-
background-color: #333333;
|
92 |
-
color: #ffffff;
|
93 |
-
padding: 8px;
|
94 |
-
text-align: center;
|
95 |
-
font-weight: bold;
|
96 |
-
}
|
97 |
-
.dark-table td {
|
98 |
-
border: 1px solid #444444;
|
99 |
-
padding: 8px;
|
100 |
-
text-align: center;
|
101 |
-
}
|
102 |
-
.dark-table tr:nth-child(even) {
|
103 |
-
background-color: #2b2b2b;
|
104 |
-
}
|
105 |
-
.dark-table tr:nth-child(odd) {
|
106 |
-
background-color: #1f1f1f;
|
107 |
-
}
|
108 |
-
</style>
|
109 |
-
"""
|
110 |
-
|
111 |
-
# Convert DataFrame to HTML with the custom CSS class, hiding the index
|
112 |
-
styled_html = df.to_html(index=False, classes="dark-table")
|
113 |
-
html_code = table_css + styled_html
|
114 |
-
|
115 |
-
# Use st.components.v1.html to render the table
|
116 |
-
components.html(html_code, height=300)
|
117 |
-
|
118 |
|
119 |
def main():
|
120 |
st.set_page_config(page_title="World Model Challenge")
|
|
|
58 |
)
|
59 |
|
60 |
# Overall Leaderboard Section
|
|
|
61 |
st.write(
|
62 |
"The overall leaderboard, which shows the total points across all challenges, will go live on **March 10th**. "
|
63 |
"Additionally, each challenge—**Compression**, **Sampling**, and **Evaluation**—will have its own leaderboard on their "
|
64 |
+
"respective Hugging Face submission servers."
|
65 |
)
|
66 |
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
def main():
|
70 |
st.set_page_config(page_title="World Model Challenge")
|