import streamlit as st st.set_page_config(layout="wide") for name in dir(): if not name.startswith('_'): del globals()[name] import numpy as np import pandas as pd import streamlit as st import gspread import pymongo @st.cache_resource def init_conn(): uri = st.secrets['mongo_uri'] client = pymongo.MongoClient(uri, retryWrites=True, serverSelectionTimeoutMS=500000) db = client["MLB_Database"] return db # db = init_conn() player_roo_format = {'Top_finish': '{:.2%}','Top_5_finish': '{:.2%}', 'Top_10_finish': '{:.2%}', '20+%': '{:.2%}', '2x%': '{:.2%}', '3x%': '{:.2%}', '4x%': '{:.2%}'} st.markdown(""" """, unsafe_allow_html=True) tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"]) with tab1: st.title("Scoring Percentages") st.write("This is the scoring percentages tab.") with tab2: st.title("Player ROO") st.write("This is the player ROO tab.") with tab3: st.title("Optimals") st.write("This is the optimals tab.")