Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -2
src/streamlit_app.py
CHANGED
@@ -34,10 +34,10 @@ st.set_page_config(layout="wide")
|
|
34 |
# -------------------------------
|
35 |
# π LOGIN SECTION
|
36 |
# -------------------------------
|
37 |
-
|
38 |
def login():
|
39 |
|
40 |
-
|
41 |
with st.form("login_form"):
|
42 |
|
43 |
username = st.text_input("Username").strip().upper()
|
@@ -52,6 +52,7 @@ def login():
|
|
52 |
st.session_state.username = username
|
53 |
st.session_state.user_role = user_data.get("type", "Standard")
|
54 |
st.success(f"Welcome, {username}!")
|
|
|
55 |
st.rerun()
|
56 |
else:
|
57 |
st.error("Invalid credentials")
|
|
|
34 |
# -------------------------------
|
35 |
# π LOGIN SECTION
|
36 |
# -------------------------------
|
37 |
+
#@st.dialog("π Login")
|
38 |
def login():
|
39 |
|
40 |
+
st.title("π Login")
|
41 |
with st.form("login_form"):
|
42 |
|
43 |
username = st.text_input("Username").strip().upper()
|
|
|
52 |
st.session_state.username = username
|
53 |
st.session_state.user_role = user_data.get("type", "Standard")
|
54 |
st.success(f"Welcome, {username}!")
|
55 |
+
|
56 |
st.rerun()
|
57 |
else:
|
58 |
st.error("Invalid credentials")
|