F1-analysis / pages /Positions_Change.py
tracinginsights's picture
Update pages/Positions_Change.py
2823ac5
raw
history blame
539 Bytes
import streamlit as st
from repo_directory import Postions_Change
from repo_directory import button
GRANDPRIX = st.text_input("Grand Prix Name, eg.Monaco")
START_URL = st.text_input(label="Starting Grid URL from Formula1.com", value="https://www.formula1.com/en/results.html/2022/races/1136/mexico/starting-grid.html")
FINISH_URL = st.text_input(label="Race Result URL from Formula1.com", value="https://www.formula1.com/en/results.html/2022/races/1136/mexico/race-result.html")
Postions_Change.plot(START_URL, FINISH_URL, GRANDPRIX)