satya11 commited on
Commit
ce5425a
·
verified ·
1 Parent(s): 38c467f

Update pages/newpages.py

Browse files
Files changed (1) hide show
  1. pages/newpages.py +6 -6
pages/newpages.py CHANGED
@@ -1,9 +1,9 @@
1
  import streamlit as st
2
 
3
- st.title("New Page")
4
- st.write("Welcome to the new page!")
 
5
 
6
- # Optional: Button to go back to the main page
7
- if st.button("Go Back"):
8
- st.session_state.page = "main"
9
- st.experimental_rerun()
 
1
  import streamlit as st
2
 
3
+ def run():
4
+ st.title("New Page")
5
+ st.write("Welcome to the new page!")
6
 
7
+ # Navigation back
8
+ if st.button("Go Back"):
9
+ st.session_state.page = "main"