Spaces:
Running
Running
tracinginsights
commited on
Commit
·
e7112bf
1
Parent(s):
f877b1c
Create Downforce_Levels.py
Browse files- pages/Downforce_Levels.py +23 -0
pages/Downforce_Levels.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from repo_directory import Downforce_levels
|
3 |
+
from repo_directory import button
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
# selections
|
8 |
+
YEAR = st.selectbox(
|
9 |
+
'Select Year',
|
10 |
+
(2022, 2021, 2020, 2019, 2018))
|
11 |
+
|
12 |
+
RACE = st.selectbox(
|
13 |
+
'Select Race',
|
14 |
+
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
|
15 |
+
|
16 |
+
|
17 |
+
SESSION = st.selectbox(
|
18 |
+
'Select Session',
|
19 |
+
('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
|
20 |
+
|
21 |
+
CIRCUIT_LENGTH = st.number_input('Circuit Length in metres')
|
22 |
+
|
23 |
+
Downforce_levels.plot(YEAR, RACE, SESSION, CIRCUIT_LENGTH)
|