F1-analysis / pages /Fan_Ratings.py
tracinginsights's picture
Update pages/Fan_Ratings.py
0ba9c38
raw
history blame
330 Bytes
import streamlit as st
from repo_directory import Fan_Ratings
from repo_directory import button
ROUND = st.text_input('Enter Race Number eg. 1 or 1S for sprints')
GRANDPRIX = st.text_input('Enter GP Name eg. ITALIAN')
Fan_Ratings.plot_season_ratings()
try:
Fan_Ratings.plot_fan_ratings(ROUND, GRANDPRIX)
except:
pass