Spaces:
Running
Running
| import streamlit as st | |
| from repo_directory import Weekend_Results | |
| from repo_directory import button | |
| GRANDPRIX = st.text_input(label="Grand Prix Name, eg.Japan", value='Japan') | |
| URL = st.text_input(label="GP URL from Formula1.com in this format", value="https://www.formula1.com/en/results/2025/races/1256/japan/race-result") | |
| URL = URL.rstrip('/').rsplit('/', 1)[0] | |
| year = 2025 | |
| type = st.radio( | |
| "Traditional or Sprint Weekend?", | |
| ["traditional", "sprint_2025"], | |
| ) | |
| _,df = Weekend_Results.plot(GRANDPRIX, URL, year, weekend_type=type) | |
| st.dataframe(df) |