File size: 453 Bytes
dd64f21
 
 
5e815e0
 
ddb39cb
dd64f21
 
 
 
 
 
 
 
 
 
 
 
 
5e815e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()