Spaces:
Running
Running
tracinginsights
commited on
Commit
•
2585fc7
1
Parent(s):
ca08eb2
Update pages/Drivers_in_Traffic.py
Browse files
pages/Drivers_in_Traffic.py
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Drivers_in_Traffic
|
3 |
-
from repo_directory import button
|
4 |
|
5 |
st.write('Takes more than 5 minutes.')
|
6 |
|
7 |
YEAR_SELECTED = st.selectbox(
|
8 |
'Select year',
|
9 |
-
(2023, 2022, 2021, 2020, 2019, 2018))
|
10 |
|
11 |
|
12 |
|
13 |
RACE_SELECTED = st.selectbox(
|
14 |
'Select Race',
|
15 |
-
(
|
16 |
|
17 |
SESSION = st.selectbox(
|
18 |
'Select Session',
|
19 |
-
(
|
20 |
|
21 |
laps, f1session, drivers, driver_colors = Drivers_in_Traffic.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
22 |
|
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Drivers_in_Traffic
|
3 |
+
from repo_directory import button, utils
|
4 |
|
5 |
st.write('Takes more than 5 minutes.')
|
6 |
|
7 |
YEAR_SELECTED = st.selectbox(
|
8 |
'Select year',
|
9 |
+
(2024, 2023, 2022, 2021, 2020, 2019, 2018))
|
10 |
|
11 |
|
12 |
|
13 |
RACE_SELECTED = st.selectbox(
|
14 |
'Select Race',
|
15 |
+
utils.get_events(YEAR_SELECTED))
|
16 |
|
17 |
SESSION = st.selectbox(
|
18 |
'Select Session',
|
19 |
+
utils.get_events(YEAR_SELECTED, RACE_SELECTED))
|
20 |
|
21 |
laps, f1session, drivers, driver_colors = Drivers_in_Traffic.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
22 |
|