TimWindecker commited on
Commit
02a80e2
·
verified ·
1 Parent(s): 460fe63

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -34
src/streamlit_app.py CHANGED
@@ -17,12 +17,6 @@ st.markdown("""
17
  <style>
18
  /* Import Font Awesome */
19
  @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
20
-
21
- /* TODO Limit page width
22
- [data-testid="stAppViewContainer"] > .block-container {
23
- max-width: 1200px !important;
24
- padding: 3rem 1.5rem 10rem 1.5rem;
25
- }*/
26
 
27
  /* Headings */
28
  h1 {
@@ -33,13 +27,6 @@ st.markdown("""
33
  margin-bottom: 2rem;
34
  }
35
 
36
- /*h2 { TODO
37
- font-size: 3rem !important;
38
- font-weight: 500;
39
- margin-top: 3rem;
40
- margin-bottom: 1.5rem;
41
- }*/
42
-
43
  /* Links container */
44
  .links-container {
45
  text-align: center;
@@ -85,7 +72,8 @@ st.markdown("""
85
  flex-grow: 1;
86
  padding-top: 0.3rem;
87
  }
88
-
 
89
  .instruction-title {
90
  font-size: 1.1rem;
91
  font-weight: 600;
@@ -104,23 +92,8 @@ st.markdown("""
104
 
105
  .theme-dark .instruction-desc {
106
  color: #c5c5c5 !important;
107
- }
108
-
109
- /* TODO
110
- /* Hide streamlit branding */
111
- #MainMenu {visibility: hidden;}
112
- footer {visibility: hidden;}
113
-
114
- /* Expander styling */
115
- .streamlit-expanderHeader {
116
- font-size: 1.1rem;
117
- font-weight: 600;
118
- }
119
-
120
- /* File uploader */
121
- [data-testid="stFileUploader"] {
122
- margin: 1rem 0;
123
  } */
 
124
  </style>
125
  """, unsafe_allow_html=True)
126
 
@@ -288,9 +261,6 @@ if 'user_results' in st.session_state:
288
  user_row = pd.DataFrame([st.session_state.user_results])
289
  df = pd.concat([user_row, df], ignore_index=True)
290
 
291
- # Leaderboard section
292
- #TODO st.header("Leaderboard")
293
-
294
  # View selector
295
  view_type = st.selectbox(
296
  "Select View",
@@ -407,4 +377,4 @@ with st.expander("How to Test Your Model", expanded=True):
407
  </div>
408
  """, unsafe_allow_html=True)
409
 
410
- st.link_button("Submit Model (Google Form)", "https://forms.gle/your-google-form-link", use_container_width=True)
 
17
  <style>
18
  /* Import Font Awesome */
19
  @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
 
 
 
 
 
 
20
 
21
  /* Headings */
22
  h1 {
 
27
  margin-bottom: 2rem;
28
  }
29
 
 
 
 
 
 
 
 
30
  /* Links container */
31
  .links-container {
32
  text-align: center;
 
72
  flex-grow: 1;
73
  padding-top: 0.3rem;
74
  }
75
+
76
+ /* TODO
77
  .instruction-title {
78
  font-size: 1.1rem;
79
  font-weight: 600;
 
92
 
93
  .theme-dark .instruction-desc {
94
  color: #c5c5c5 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  } */
96
+
97
  </style>
98
  """, unsafe_allow_html=True)
99
 
 
261
  user_row = pd.DataFrame([st.session_state.user_results])
262
  df = pd.concat([user_row, df], ignore_index=True)
263
 
 
 
 
264
  # View selector
265
  view_type = st.selectbox(
266
  "Select View",
 
377
  </div>
378
  """, unsafe_allow_html=True)
379
 
380
+ st.link_button("🗳️ Submit Model", "https://forms.gle/your-google-form-link", use_container_width=True)