TimWindecker commited on
Commit
c4fcf32
·
verified ·
1 Parent(s): 9d82914

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +22 -26
src/streamlit_app.py CHANGED
@@ -20,20 +20,28 @@ st.markdown("""
20
 
21
  /* Limit page width */
22
  .main .block-container {
23
- max-width: 1200px;
24
  padding-top: 3rem;
25
  }
26
-
27
- /* Main title styling */
28
- .main-title {
29
  text-align: center;
30
- font-size: 50rem;
31
  font-weight: 500;
32
  margin-top: 1rem;
33
  margin-bottom: 2rem;
34
  color: #363636;
35
  }
36
 
 
 
 
 
 
 
 
 
37
  /* Links container */
38
  .links-container {
39
  text-align: center;
@@ -52,16 +60,7 @@ st.markdown("""
52
  .links-container a:hover {
53
  color: #764ba2;
54
  }
55
-
56
- /* Section headers */
57
- .section-header {
58
- font-size: 1.8rem;
59
- font-weight: 500;
60
- margin-top: 3rem;
61
- margin-bottom: 1.5rem;
62
- color: #363636;
63
- }
64
-
65
  /* Instructions styling */
66
  .instruction-item {
67
  display: flex;
@@ -274,17 +273,17 @@ st.markdown('<h1 class="main-title">NaviTrace Leaderboard</h1>', unsafe_allow_ht
274
 
275
  # Nerfies-style button links
276
  st.markdown("""
277
- <div class="button-links">
278
- <a href="https://your-paper-website.com" target="_blank" class="button-link">
279
  <i class="fas fa-file-pdf"></i> Paper
280
  </a>
281
- <a href="https://huggingface.co/datasets/your-username/navitrace" target="_blank" class="button-link">
282
  <i class="fas fa-database"></i> Dataset
283
  </a>
284
- <a href="https://github.com/your-username/navitrace" target="_blank" class="button-link">
285
  <i class="fab fa-github"></i> Code
286
  </a>
287
- <a href="https://your-demo-link.com" target="_blank" class="button-link">
288
  <i class="far fa-images"></i> Demo
289
  </a>
290
  </div>
@@ -299,8 +298,8 @@ if 'user_results' in st.session_state:
299
  df = pd.concat([user_row, df], ignore_index=True)
300
 
301
  # Leaderboard section
302
- st.markdown('<div id="leaderboard"></div>', unsafe_allow_html=True)
303
- st.markdown('<h2 class="section-header">Leaderboard</h2>', unsafe_allow_html=True)
304
 
305
  # View selector
306
  view_type = st.selectbox(
@@ -337,10 +336,7 @@ with st.expander("Embed Chart in Your Website"):
337
  mime="text/html"
338
  )
339
 
340
- # Instructions section
341
- st.markdown('<h2 class="section-header">Evaluate Your Model</h2>', unsafe_allow_html=True)
342
-
343
- with st.expander("How to Test Your Model", expanded=False):
344
  # Step 1
345
  st.markdown("""
346
  <div class="instruction-item">
 
20
 
21
  /* Limit page width */
22
  .main .block-container {
23
+ max-width: 1500px;
24
  padding-top: 3rem;
25
  }
26
+
27
+ /* Headings */
28
+ h1 {
29
  text-align: center;
30
+ font-size: 4.5rem !important;
31
  font-weight: 500;
32
  margin-top: 1rem;
33
  margin-bottom: 2rem;
34
  color: #363636;
35
  }
36
 
37
+ h2 {
38
+ font-size: 2rem !important;
39
+ font-weight: 500;
40
+ margin-top: 3rem;
41
+ margin-bottom: 1.5rem;
42
+ color: #363636;
43
+ }
44
+
45
  /* Links container */
46
  .links-container {
47
  text-align: center;
 
60
  .links-container a:hover {
61
  color: #764ba2;
62
  }
63
+
 
 
 
 
 
 
 
 
 
64
  /* Instructions styling */
65
  .instruction-item {
66
  display: flex;
 
273
 
274
  # Nerfies-style button links
275
  st.markdown("""
276
+ <div class="links-container">
277
+ <a href="https://your-paper-website.com" target="_blank">
278
  <i class="fas fa-file-pdf"></i> Paper
279
  </a>
280
+ <a href="https://huggingface.co/datasets/your-username/navitrace" target="_blank">
281
  <i class="fas fa-database"></i> Dataset
282
  </a>
283
+ <a href="https://github.com/your-username/navitrace" target="_blank">
284
  <i class="fab fa-github"></i> Code
285
  </a>
286
+ <a href="https://your-demo-link.com" target="_blank">
287
  <i class="far fa-images"></i> Demo
288
  </a>
289
  </div>
 
298
  df = pd.concat([user_row, df], ignore_index=True)
299
 
300
  # Leaderboard section
301
+ st.title("NaviTrace Leaderboard")
302
+ st.header("Leaderboard")
303
 
304
  # View selector
305
  view_type = st.selectbox(
 
336
  mime="text/html"
337
  )
338
 
339
+ with st.expander("How to Test Your Model", expanded=True):
 
 
 
340
  # Step 1
341
  st.markdown("""
342
  <div class="instruction-item">