tracinginsights commited on
Commit
32835c7
·
1 Parent(s): c70070d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  from git import Repo
2
  import os
3
  import streamlit as st
4
-
5
 
6
  GITHUB_PAT = os.environ['GITHUB']
7
 
@@ -10,8 +10,29 @@ if not os.path.exists('repo_directory'):
10
 
11
 
12
  import repo_directory.app as app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  option = app.select_gp()
14
  app.plot_recent_overtakes(option)
15
  app.plot_full_season()
16
  app.plot_circuits()
17
 
 
 
 
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
 
 
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: 60px;
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)
34
  app.plot_full_season()
35
  app.plot_circuits()
36
 
37
+
38
+