Pranav0111 commited on
Commit
b7bd89e
·
verified ·
1 Parent(s): 993bab7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -433,22 +433,22 @@ def main():
433
  )
434
 
435
  with st.sidebar:
436
- st.title("Prospira")
437
- st.subheader("Data-Driven Solutions")
438
-
439
- page = st.radio(
440
- "Navigation",
441
- ["Dashboard", "Analytics", "Brainstorm", "Chat"]
442
- )
443
 
444
- if page == "Dashboard":
445
- render_dashboard()
446
- elif page == "Analytics":
447
- render_analytics()
448
- elif page == "Brainstorm":
449
- render_brainstorm_page()
450
- elif page == "Chat":
451
- render_chat()
 
 
 
 
 
452
 
453
  if __name__ == "__main__":
454
  main()
 
433
  )
434
 
435
  with st.sidebar:
436
+ st.title("Prospira")
437
+ st.subheader("Data-Driven Solutions")
 
 
 
 
 
438
 
439
+ if 'page' not in st.session_state:
440
+ st.session_state.page = "Dashboard" # Default page
441
+
442
+ if st.button("Dashboard"):
443
+ st.session_state.page = "Dashboard"
444
+ if st.button("Analytics"):
445
+ st.session_state.page = "Analytics"
446
+ if st.button("Brainstorm"):
447
+ st.session_state.page = "Brainstorm"
448
+ if st.button("Chat"):
449
+ st.session_state.page = "Chat"
450
+
451
+ page = st.session_state.page
452
 
453
  if __name__ == "__main__":
454
  main()