walaa2022 commited on
Commit
faa40ab
ยท
verified ยท
1 Parent(s): 64a65b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -79,8 +79,8 @@ def main():
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,37 +88,37 @@ def main():
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():
 
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():