Spaces:
Running
Running
tracinginsights
commited on
Commit
β’
0d98e0c
1
Parent(s):
37827e3
Update app.py
Browse files
app.py
CHANGED
@@ -1,33 +1,15 @@
|
|
1 |
from git import Repo
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
-
|
5 |
|
6 |
GITHUB_PAT = os.environ['GITHUB']
|
7 |
|
8 |
if not os.path.exists('repo_directory'):
|
9 |
-
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/
|
10 |
-
|
11 |
-
|
12 |
-
#import repo_directory.app as app
|
13 |
-
button = """
|
14 |
-
<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>
|
15 |
-
"""
|
16 |
|
17 |
-
|
18 |
|
19 |
-
st.markdown(
|
20 |
-
"""
|
21 |
-
<style>
|
22 |
-
iframe[width="220"] {
|
23 |
-
position: fixed;
|
24 |
-
top: 0px;
|
25 |
-
right: 40px;
|
26 |
-
}
|
27 |
-
</style>
|
28 |
-
""",
|
29 |
-
unsafe_allow_html=True,
|
30 |
-
)
|
31 |
|
32 |
# option = app.select_gp()
|
33 |
# app.plot_recent_overtakes(option)
|
@@ -35,7 +17,7 @@ st.markdown(
|
|
35 |
# app.plot_circuits()
|
36 |
|
37 |
from multipage import MultiPage
|
38 |
-
from repo_directory
|
39 |
|
40 |
# Create an instance of the app
|
41 |
multiapp = MultiPage()
|
|
|
1 |
from git import Repo
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
+
|
5 |
|
6 |
GITHUB_PAT = os.environ['GITHUB']
|
7 |
|
8 |
if not os.path.exists('repo_directory'):
|
9 |
+
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' )
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
from repo_directory import button
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# option = app.select_gp()
|
15 |
# app.plot_recent_overtakes(option)
|
|
|
17 |
# app.plot_circuits()
|
18 |
|
19 |
from multipage import MultiPage
|
20 |
+
from repo_directory import Race_Launch_Performance_Ratings
|
21 |
|
22 |
# Create an instance of the app
|
23 |
multiapp = MultiPage()
|