File size: 769 Bytes
5f6ece1
9307c40
 
 
7b2977f
5f6ece1
 
2f3b403
5f6ece1
b504ecd
7b2977f
5f6ece1
 
c4a4ed1
a5d5026
 
9307c40
 
 
 
 
a5d5026
 
 
 
 
357067d
a5d5026
 
 
c4a4ed1
9307c40
d9c9f01
6595b49
9307c40
 
56db486
9307c40
6595b49
7b2977f
9307c40
 
7b2977f
9307c40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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()