wop commited on
Commit
e05cd98
1 Parent(s): b3f1f98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, args=(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:
 
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: