Spaces:
Sleeping
Sleeping
L141 warning added
Browse files
app.py
CHANGED
|
@@ -138,14 +138,13 @@ if st.session_state["authentication_status"]:
|
|
| 138 |
with st.sidebar:
|
| 139 |
with st.expander("Login 🔒", expanded=True):
|
| 140 |
authenticator.login("Login", "main")
|
| 141 |
-
|
|
|
|
|
|
|
| 142 |
if st.session_state["authentication_status"]:
|
| 143 |
try:
|
| 144 |
authenticator.logout("Logout", "main", key="unique_key")
|
| 145 |
except KeyError:
|
| 146 |
-
st.warning(
|
| 147 |
-
"If you are running this app on HuggingFace, you'll need to just refresh your screen to log out."
|
| 148 |
-
)
|
| 149 |
pass # ignore it
|
| 150 |
except Exception as err:
|
| 151 |
st.error(f"Unexpected exception {err}")
|
|
|
|
| 138 |
with st.sidebar:
|
| 139 |
with st.expander("Login 🔒", expanded=True):
|
| 140 |
authenticator.login("Login", "main")
|
| 141 |
+
st.warning(
|
| 142 |
+
"If you are running this app on HuggingFace, you'll need to just refresh your screen to log out."
|
| 143 |
+
)
|
| 144 |
if st.session_state["authentication_status"]:
|
| 145 |
try:
|
| 146 |
authenticator.logout("Logout", "main", key="unique_key")
|
| 147 |
except KeyError:
|
|
|
|
|
|
|
|
|
|
| 148 |
pass # ignore it
|
| 149 |
except Exception as err:
|
| 150 |
st.error(f"Unexpected exception {err}")
|