Spaces:
Sleeping
Sleeping
fix layout
Browse files
app.py
CHANGED
|
@@ -102,8 +102,24 @@ def main():
|
|
| 102 |
number_of_competitions, number_of_runs = get_all_competition_summary(wandb_api, COMPETITIONS)
|
| 103 |
last_updated = datetime.datetime.fromtimestamp(st.session_state.last_update_time).strftime('%Y-%m-%d %H:%M:%S')
|
| 104 |
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
st.subheader("###")
|
| 109 |
st.markdown("<h2 style='text-align: center; font-size: 28px;'>Competitions</h2>", unsafe_allow_html=True)
|
|
@@ -153,28 +169,6 @@ def main():
|
|
| 153 |
st.write("Please select a competition to view details.")
|
| 154 |
|
| 155 |
|
| 156 |
-
|
| 157 |
-
st.subheader("Summary information")
|
| 158 |
-
st.markdown(f"""
|
| 159 |
-
<div class="table-container">
|
| 160 |
-
<table class="summary-table">
|
| 161 |
-
<tr>
|
| 162 |
-
<th>Number of competitions</th>
|
| 163 |
-
<th>Number of models run</th>
|
| 164 |
-
<th>Last updated</th>
|
| 165 |
-
</tr>
|
| 166 |
-
<tr>
|
| 167 |
-
<td>{number_of_competitions}</td>
|
| 168 |
-
<td>{number_of_runs}</td>
|
| 169 |
-
<td>{last_updated}</td>
|
| 170 |
-
</tr>
|
| 171 |
-
</table>
|
| 172 |
-
</div>
|
| 173 |
-
""", unsafe_allow_html=True)
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
|
| 179 |
# Run the app
|
| 180 |
if __name__ == "__main__":
|
|
|
|
| 102 |
number_of_competitions, number_of_runs = get_all_competition_summary(wandb_api, COMPETITIONS)
|
| 103 |
last_updated = datetime.datetime.fromtimestamp(st.session_state.last_update_time).strftime('%Y-%m-%d %H:%M:%S')
|
| 104 |
|
| 105 |
+
|
| 106 |
+
st.subheader("Summary information")
|
| 107 |
+
st.markdown(f"""
|
| 108 |
+
<div class="table-container">
|
| 109 |
+
<table class="summary-table">
|
| 110 |
+
<tr>
|
| 111 |
+
<th>Number of competitions</th>
|
| 112 |
+
<th>Number of models run</th>
|
| 113 |
+
<th>Last updated</th>
|
| 114 |
+
</tr>
|
| 115 |
+
<tr>
|
| 116 |
+
<td>{number_of_competitions}</td>
|
| 117 |
+
<td>{number_of_runs}</td>
|
| 118 |
+
<td>{last_updated}</td>
|
| 119 |
+
</tr>
|
| 120 |
+
</table>
|
| 121 |
+
</div>
|
| 122 |
+
""", unsafe_allow_html=True)
|
| 123 |
|
| 124 |
st.subheader("###")
|
| 125 |
st.markdown("<h2 style='text-align: center; font-size: 28px;'>Competitions</h2>", unsafe_allow_html=True)
|
|
|
|
| 169 |
st.write("Please select a competition to view details.")
|
| 170 |
|
| 171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
|
| 173 |
# Run the app
|
| 174 |
if __name__ == "__main__":
|