Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,8 @@ def main():
|
|
79 |
st.session_state.current_startup = selected_startup
|
80 |
|
81 |
# Show basic startup info
|
82 |
-
|
83 |
-
|
84 |
**Stage:** {startup_data['stage']}
|
85 |
**Cash:** ${startup_data['cash']:,}
|
86 |
**Monthly Burn:** ${startup_data['burn_rate']:,}
|
@@ -88,37 +88,37 @@ def main():
|
|
88 |
""")
|
89 |
|
90 |
# Navigation buttons
|
91 |
-
|
92 |
|
93 |
-
|
94 |
"๐ Financial Dashboard": "dashboard",
|
95 |
"๐ฎ Decision Simulator": "simulator",
|
96 |
"๐ต๏ธ Fund Monitoring": "monitoring",
|
97 |
"๐ค AI Financial Advisor": "advisor"
|
98 |
}
|
99 |
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
|
105 |
# Render the correct page
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
)
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
)
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
)
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
)
|
123 |
|
124 |
def validate_gemini_api_key():
|
|
|
79 |
st.session_state.current_startup = selected_startup
|
80 |
|
81 |
# Show basic startup info
|
82 |
+
startup_data = st.session_state.startups[selected_startup]['profile']
|
83 |
+
st.markdown(f"""
|
84 |
**Stage:** {startup_data['stage']}
|
85 |
**Cash:** ${startup_data['cash']:,}
|
86 |
**Monthly Burn:** ${startup_data['burn_rate']:,}
|
|
|
88 |
""")
|
89 |
|
90 |
# Navigation buttons
|
91 |
+
st.markdown("<hr>", unsafe_allow_html=True)
|
92 |
|
93 |
+
page_options = {
|
94 |
"๐ Financial Dashboard": "dashboard",
|
95 |
"๐ฎ Decision Simulator": "simulator",
|
96 |
"๐ต๏ธ Fund Monitoring": "monitoring",
|
97 |
"๐ค AI Financial Advisor": "advisor"
|
98 |
}
|
99 |
|
100 |
+
for label, page_key in page_options.items():
|
101 |
+
if st.button(label, use_container_width=True):
|
102 |
+
st.session_state.current_page = page_key
|
103 |
+
st.experimental_rerun()
|
104 |
|
105 |
# Render the correct page
|
106 |
+
if st.session_state.current_page == 'dashboard':
|
107 |
+
dashboard.render_financial_dashboard(
|
108 |
+
st.session_state.startups[st.session_state.current_startup]['profile'],
|
109 |
+
st.session_state.startups[st.session_state.current_startup]['cash_flow']
|
110 |
)
|
111 |
+
elif st.session_state.current_page == 'simulator':
|
112 |
+
decision_simulator.render_decision_simulator(
|
113 |
+
st.session_state.startups[st.session_state.current_startup]['profile']
|
114 |
)
|
115 |
+
elif st.session_state.current_page == 'monitoring':
|
116 |
+
fund_monitoring.render_fund_monitoring(
|
117 |
+
st.session_state.startups[st.session_state.current_startup]['transactions']
|
118 |
)
|
119 |
+
elif st.session_state.current_page == 'advisor':
|
120 |
+
financial_advisor.render_ai_financial_advisor(
|
121 |
+
st.session_state.startups[st.session_state.current_startup]['profile']
|
122 |
)
|
123 |
|
124 |
def validate_gemini_api_key():
|