Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def login(password_input):
|
|
35 |
|
36 |
with login_container:
|
37 |
password_input = st.text_input("Password", type="password")
|
38 |
-
st.button("authenticate", on_click=login
|
39 |
|
40 |
# Only allow access to the app if the user is authenticated
|
41 |
if "authenticated" not in st.session_state or not st.session_state.authenticated:
|
|
|
35 |
|
36 |
with login_container:
|
37 |
password_input = st.text_input("Password", type="password")
|
38 |
+
st.button("authenticate", on_click=login(password_input))
|
39 |
|
40 |
# Only allow access to the app if the user is authenticated
|
41 |
if "authenticated" not in st.session_state or not st.session_state.authenticated:
|