Spaces:
Running
Running
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 = """ | |
<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="TracingInsights" data-color="#00ff00" data-emoji="π" data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#FFDD00" ></script> | |
""" | |
html(button, height=70, width=220) | |
st.markdown( | |
""" | |
<style> | |
iframe[width="220"] { | |
position: fixed; | |
top: 0px; | |
right: 40px; | |
} | |
</style> | |
""", | |
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() | |