tracinginsights commited on
Commit
0d98e0c
β€’
1 Parent(s): 37827e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -22
app.py CHANGED
@@ -1,33 +1,15 @@
1
  from git import Repo
2
  import os
3
  import streamlit as st
4
- from streamlit.components.v1 import html
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/Charts.git', 'repo_directory' )
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
- html(button, height=70, width=220)
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.pages import Race_Launch_Performance_Ratings
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()