I am displaying only Login page 1st up and after successfull authentication I swtich page to “Create.py”. Till here everything works fine.
I want to have a logout button on “Create.py” which would in turn switch the control back to Login page(which is one directory up). Is there a hack to do this?
1 small thing, when ever I try to add a logo on sidebar using below line of code it somehow does not seem to work the sidebar remains blank. Should I use the CSS approach to have a logo(stored locally in my PC) on sidebar.
from streamlit_extras.app_logo import add_logo
add_logo(“C:/logo/logo.png”, height=90)
You can actually just do st.sidebar.image(<image location>) instead of using the streamlit extra. Either way, though, you will want to either use a logo file that is in the same folder as your app, or use a url.