-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_page.py
More file actions
33 lines (24 loc) · 834 Bytes
/
main_page.py
File metadata and controls
33 lines (24 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import streamlit as st
import side_bar as comp
import stTools as tools
import default_page
import portfolio_page
import model_page
st.set_page_config(
page_title="MindInventory Financial Risk Tool",
page_icon="🦈",
layout="wide"
)
tools.remove_white_space()
st.title("MindInventory Risk Management Simulation Tool")
comp.load_sidebar()
if "load_portfolio_check" not in st.session_state:
st.session_state["load_portfolio_check"] = False
if "run_simulation_check" not in st.session_state:
st.session_state["run_simulation_check"] = False
if not st.session_state.load_portfolio_check:
default_page.load_page()
elif not st.session_state.run_simulation_check and st.session_state.load_portfolio_check:
portfolio_page.load_page()
elif st.session_state.run_simulation_check:
model_page.load_page()