Spaces:
Sleeping
Sleeping
elfsong
commited on
Commit
·
9e2c8ea
1
Parent(s):
a53ef27
Update
Browse files
app.py
CHANGED
@@ -188,7 +188,8 @@ st.write(
|
|
188 |
)
|
189 |
|
190 |
# Layout
|
191 |
-
|
|
|
192 |
|
193 |
# NUS Stops
|
194 |
for stop_info in nus_bus_stops:
|
@@ -211,7 +212,7 @@ for stop_info in nus_bus_stops:
|
|
211 |
buses.sort(key=lambda x: x["eta"])
|
212 |
|
213 |
with st.container(border=True):
|
214 |
-
cols = st.columns(
|
215 |
cols[0].metric("NUS Stop", stop_info['name'])
|
216 |
|
217 |
for i, bus in enumerate(buses[:number_of_coloumns-1]):
|
|
|
188 |
)
|
189 |
|
190 |
# Layout
|
191 |
+
coloumns = [2,1,1,1,1,1,1,1,1,1,1]
|
192 |
+
number_of_coloumns = len(coloumns)
|
193 |
|
194 |
# NUS Stops
|
195 |
for stop_info in nus_bus_stops:
|
|
|
212 |
buses.sort(key=lambda x: x["eta"])
|
213 |
|
214 |
with st.container(border=True):
|
215 |
+
cols = st.columns(coloumns)
|
216 |
cols[0].metric("NUS Stop", stop_info['name'])
|
217 |
|
218 |
for i, bus in enumerate(buses[:number_of_coloumns-1]):
|