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()