Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,14 +41,15 @@ authenticator = stauth.Authenticate(
|
|
41 |
config['cookie']['expiry_days']
|
42 |
)
|
43 |
|
44 |
-
|
|
|
45 |
|
46 |
if not authentication_status:
|
47 |
st.error('Authentication failed. Please refresh and try again.')
|
48 |
st.stop()
|
49 |
|
50 |
st.sidebar.write(f"Welcome *{name}*")
|
51 |
-
authenticator.logout('Logout', 'sidebar')
|
52 |
|
53 |
# ------------------------------
|
54 |
# Load Models
|
|
|
41 |
config['cookie']['expiry_days']
|
42 |
)
|
43 |
|
44 |
+
# Use keyword argument for location
|
45 |
+
name, authentication_status, username = authenticator.login('Login', location='main')
|
46 |
|
47 |
if not authentication_status:
|
48 |
st.error('Authentication failed. Please refresh and try again.')
|
49 |
st.stop()
|
50 |
|
51 |
st.sidebar.write(f"Welcome *{name}*")
|
52 |
+
authenticator.logout('Logout', location='sidebar')
|
53 |
|
54 |
# ------------------------------
|
55 |
# Load Models
|