import streamlit as st from login import LOGIN from register import REGISTER from ui import APP # --- Page Configuration (Optional but good practice) --- st.set_page_config( page_title="newMATTER", page_icon=":computer:", layout="wide", #initial_sidebar_state="collapsed" ) if 'logged_in' not in st.session_state: st.session_state.logged_in = False if "registered" not in st.session_state: st.session_state.registered=False if 'username' not in st.session_state: st.session_state.username = "" if 'projectname' not in st.session_state: st.session_state.projectname = "" if st.session_state.registered: if st.session_state.logged_in: APP() else: LOGIN() else : REGISTER()