Jack Monas
commited on
Commit
·
0b37704
1
Parent(s):
ca1fd84
gif
Browse files
app.py
CHANGED
|
@@ -5,6 +5,60 @@ import glob
|
|
| 5 |
import os
|
| 6 |
import random
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def resources_section():
|
| 10 |
st.markdown("## Additional Resources")
|
|
@@ -146,7 +200,7 @@ def scoring_section():
|
|
| 146 |
|
| 147 |
def main():
|
| 148 |
st.set_page_config(page_title="1X World Model Challenge")
|
| 149 |
-
|
| 150 |
st.title("1X World Model Challenge")
|
| 151 |
st.markdown("## Welcome")
|
| 152 |
st.write(
|
|
|
|
| 5 |
import os
|
| 6 |
import random
|
| 7 |
|
| 8 |
+
def sidebar_toc():
|
| 9 |
+
toc_html = """
|
| 10 |
+
<style>
|
| 11 |
+
.toc-container {
|
| 12 |
+
padding: 10px;
|
| 13 |
+
background-color: #1f1f1f;
|
| 14 |
+
border-radius: 8px;
|
| 15 |
+
margin: 10px 0;
|
| 16 |
+
}
|
| 17 |
+
.toc-title {
|
| 18 |
+
color: #ffffff;
|
| 19 |
+
font-size: 18px;
|
| 20 |
+
font-weight: bold;
|
| 21 |
+
margin-bottom: 10px;
|
| 22 |
+
}
|
| 23 |
+
.toc-list {
|
| 24 |
+
list-style: none;
|
| 25 |
+
padding: 0;
|
| 26 |
+
}
|
| 27 |
+
.toc-item {
|
| 28 |
+
margin: 8px 0;
|
| 29 |
+
}
|
| 30 |
+
.toc-item a {
|
| 31 |
+
text-decoration: none;
|
| 32 |
+
color: #cccccc;
|
| 33 |
+
font-size: 14px;
|
| 34 |
+
transition: color 0.2s ease, padding-left 0.2s ease;
|
| 35 |
+
}
|
| 36 |
+
.toc-item a:hover {
|
| 37 |
+
color: #ffffff;
|
| 38 |
+
padding-left: 5px;
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
<div class="toc-container">
|
| 42 |
+
<div class="toc-title">Table of Contents</div>
|
| 43 |
+
<ul class="toc-list">
|
| 44 |
+
<li class="toc-item"><a href="#welcome" onclick="scrollToSection('welcome')">Welcome</a></li>
|
| 45 |
+
<li class="toc-item"><a href="#motivation" onclick="scrollToSection('motivation')">Motivation</a></li>
|
| 46 |
+
<li class="toc-item"><a href="#the-challenges" onclick="scrollToSection('the-challenges')">Challenges</a></li>
|
| 47 |
+
<li class="toc-item"><a href="#datasets" onclick="scrollToSection('datasets')">Datasets</a></li>
|
| 48 |
+
<li class="toc-item"><a href="#scoring" onclick="scrollToSection('scoring')">Scoring</a></li>
|
| 49 |
+
<li class="toc-item"><a href="#rules" onclick="scrollToSection('rules')">Rules</a></li>
|
| 50 |
+
<li class="toc-item"><a href="#faqs" onclick="scrollToSection('faqs')">FAQs</a></li>
|
| 51 |
+
<li class="toc-item"><a href="#data--research-requests" onclick="scrollToSection('data--research-requests')">Data Requests</a></li>
|
| 52 |
+
<li class="toc-item"><a href="#additional-resources" onclick="scrollToSection('additional-resources')">Resources</a></li>
|
| 53 |
+
</ul>
|
| 54 |
+
</div>
|
| 55 |
+
<script>
|
| 56 |
+
function scrollToSection(sectionId) {
|
| 57 |
+
document.getElementById(sectionId).scrollIntoView({ behavior: 'smooth' });
|
| 58 |
+
}
|
| 59 |
+
</script>
|
| 60 |
+
"""
|
| 61 |
+
st.sidebar.markdown(toc_html, unsafe_allow_html=True)
|
| 62 |
|
| 63 |
def resources_section():
|
| 64 |
st.markdown("## Additional Resources")
|
|
|
|
| 200 |
|
| 201 |
def main():
|
| 202 |
st.set_page_config(page_title="1X World Model Challenge")
|
| 203 |
+
sidebar_toc()
|
| 204 |
st.title("1X World Model Challenge")
|
| 205 |
st.markdown("## Welcome")
|
| 206 |
st.write(
|