from git import Repo
import os
import streamlit as st
from streamlit.components.v1 import html
GITHUB_PAT = os.environ['GITHUB']
if not os.path.exists('repo_directory'):
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/Charts.git', 'repo_directory' )
import repo_directory.app as app
button = """
"""
html(button, height=70, width=220)
st.markdown(
"""
""",
unsafe_allow_html=True,
)
option = app.select_gp()
app.plot_recent_overtakes(option)
app.plot_full_season()
app.plot_circuits()
# from multipage import MultiPage
# from repo_directory.pages import Race_Launch_Performance_Ratings
# # Create an instance of the app
# multiapp = MultiPage()
# # Add all your application here
# multiapp.add_page("Race_Launch_Performance_Ratings", Race_Launch_Performance_Ratings.app)
# # The main app
# multiapp.run()