Spaces:
Running
Running
File size: 1,334 Bytes
4730c65 aa20908 32835c7 4730c65 3179558 bbc56cd aa20908 c70070d 6cb2101 32835c7 b83ff1d 32835c7 6cb2101 8b1263a 6cb2101 32835c7 6cb2101 b389ba6 6cb2101 b389ba6 6cb2101 32835c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
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()
|