Jon Solow
Load data if not exists on any page
5e815e0
raw
history blame
453 Bytes
import os
import streamlit as st
from queries.nflverse.github_data import load_assets_if_no_tables
def get_local_style():
code_str = ""
with open(os.path.join(os.path.dirname(__file__), "style.css")) as f:
code_str = "<style>{}</style>".format(f.read())
return code_str
def local_css():
return st.markdown(get_local_style(), unsafe_allow_html=True)
def common_page_config():
local_css()
load_assets_if_no_tables()