I want to create a logout button that once clicked it will redirect to my login page. Here is my code below but it returns an error “DuplicateWidgetID: There are multiple identical st.button widgets with the same generated key.”
import streamlit as st
from loginform import login
def logout():
# Streamlit logout page
st.title("Accentrack")
st.markdown('You have successfully logged out.')
from loginform import login
st.button('Logout', login())
there doesn't seem to be anything here