Spaces:
Sleeping
Sleeping
laishramPong
commited on
Commit
•
677b1e2
1
Parent(s):
169fbc0
adding page
Browse files- .gitignore +4 -0
- .streamlit/config.toml +2 -0
- navigation.py +2 -2
.gitignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.direnv/
|
2 |
+
.envrc
|
3 |
+
.mypy_cache/
|
4 |
+
__pycache__/
|
.streamlit/config.toml
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[client]
|
2 |
+
showSidebarNavigation = false
|
navigation.py
CHANGED
@@ -31,7 +31,7 @@ def make_sidebar():
|
|
31 |
if st.button("Log out"):
|
32 |
logout()
|
33 |
|
34 |
-
elif get_current_page_name() != "
|
35 |
# If anyone tries to access a secret page without being logged in,
|
36 |
# redirect them to the login page
|
37 |
st.switch_page("app.py")
|
@@ -41,4 +41,4 @@ def logout():
|
|
41 |
st.session_state.logged_in = False
|
42 |
st.info("Logged out successfully!")
|
43 |
sleep(0.5)
|
44 |
-
st.switch_page("
|
|
|
31 |
if st.button("Log out"):
|
32 |
logout()
|
33 |
|
34 |
+
elif get_current_page_name() != "app":
|
35 |
# If anyone tries to access a secret page without being logged in,
|
36 |
# redirect them to the login page
|
37 |
st.switch_page("app.py")
|
|
|
41 |
st.session_state.logged_in = False
|
42 |
st.info("Logged out successfully!")
|
43 |
sleep(0.5)
|
44 |
+
st.switch_page("app.py")
|