Spaces:
Running
Running
from git import Repo | |
import os | |
import streamlit as st | |
from PIL import Image | |
st.set_page_config( | |
page_title="TRACING INSIGHTS", | |
page_icon=None, | |
layout="wide", | |
initial_sidebar_state="expanded", | |
# menu_items={ | |
# 'Get Help': 'https://www.extremelycoolapp.com/help', | |
# 'Report a bug': "https://www.extremelycoolapp.com/bug", | |
# 'About': "# This is a header. This is an *extremely* cool app!" | |
# } | |
) | |
GITHUB_PAT = os.environ['GITHUB'] | |
if not os.path.exists('repo_directory'): | |
Repo.clone_from(f'https://tracinginsights:{GITHUB_PAT}@github.com/TracingInsights/F1_analysis.git', 'repo_directory' ) | |
from repo_directory.st_functions import st_button, load_css | |
from repo_directory import button | |
load_css() | |
col1, col2, col3 = st.columns(3) | |
col2.image(Image.open('Logo.png')) | |
st.header('Tracing Insights') | |
st.info("Home for F1 data-driven analytics, pre-race predictions, post-race analysis, dank memes you won't find anywhere else") | |
icon_size = 20 | |
st_button('youtube', 'https://www.youtube.com/@TracingInsights', 'Tracing Insights YouTube channel', icon_size) | |
st_button('twitter', 'https://twitter.com/tracinginsights', 'Follow me on Twitter', icon_size) | |
st_button('newsletter', 'https://tracinginsights.substack.com/', 'Sign up for my Newsletter', icon_size) | |
st_button('cup', 'https://www.buymeacoffee.com/tracinginsights', 'Buy me a Coffee', icon_size) | |