cjber commited on
Commit
4588fdd
·
1 Parent(s): 2b51dec

fix: update auth version

Browse files
Files changed (4) hide show
  1. app.py +1 -5
  2. pyproject.toml +1 -1
  3. requirements.txt +7 -5
  4. uv.lock +1 -1
app.py CHANGED
@@ -113,7 +113,6 @@ st.markdown(
113
  unsafe_allow_html=True,
114
  )
115
 
116
-
117
  # Load authentication secrets
118
  auth = st.secrets.to_dict()
119
  if "credentials" not in auth:
@@ -437,13 +436,10 @@ def main():
437
  # Handle authentication states
438
  if st.session_state["authentication_status"] is False:
439
  st.error("Username/password is incorrect")
 
440
  elif st.session_state["authentication_status"] is None:
441
  st.warning("Please enter your username and password")
442
-
443
- # Reset session if not authenticated
444
- if not st.session_state["authentication_status"]:
445
  reset_session()
446
- return
447
 
448
  if st.session_state["authentication_status"]:
449
  authenticator.logout() # show logout button
 
113
  unsafe_allow_html=True,
114
  )
115
 
 
116
  # Load authentication secrets
117
  auth = st.secrets.to_dict()
118
  if "credentials" not in auth:
 
436
  # Handle authentication states
437
  if st.session_state["authentication_status"] is False:
438
  st.error("Username/password is incorrect")
439
+ reset_session()
440
  elif st.session_state["authentication_status"] is None:
441
  st.warning("Please enter your username and password")
 
 
 
442
  reset_session()
 
443
 
444
  if st.session_state["authentication_status"]:
445
  authenticator.logout() # show logout button
pyproject.toml CHANGED
@@ -34,7 +34,7 @@ dependencies = [
34
  "loguru>=0.7.3",
35
  "mapclassify>=2.8.1",
36
  "streamlit>=1.41.1",
37
- "streamlit-authenticator>=0.4.1",
38
  "py7zr>=0.22.0",
39
  "en_core_web_lg @ https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.8.0/en_core_web_lg-3.8.0-py3-none-any.whl",
40
  "pypandoc>=1.15",
 
34
  "loguru>=0.7.3",
35
  "mapclassify>=2.8.1",
36
  "streamlit>=1.41.1",
37
+ "streamlit-authenticator>=0.4.2",
38
  "py7zr>=0.22.0",
39
  "en_core_web_lg @ https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.8.0/en_core_web_lg-3.8.0-py3-none-any.whl",
40
  "pypandoc>=1.15",
requirements.txt CHANGED
@@ -97,7 +97,9 @@ confection==0.1.5
97
  contourpy==1.3.1
98
  # via matplotlib
99
  cryptography==44.0.1
100
- # via unstructured-client
 
 
101
  cycler==0.12.1
102
  # via matplotlib
103
  cymem==2.0.11
@@ -122,8 +124,6 @@ eval-type-backport==0.2.2
122
  # via unstructured-client
123
  exceptiongroup==1.2.2
124
  # via anyio
125
- extra-streamlit-components==0.1.71
126
- # via streamlit-authenticator
127
  fastapi==0.115.8
128
  # via chromadb
129
  fastexcel==0.13.0
@@ -643,10 +643,12 @@ starlette==0.45.3
643
  streamlit==1.42.2
644
  # via
645
  # planning-ai (pyproject.toml)
646
- # extra-streamlit-components
647
  # streamlit-authenticator
648
- streamlit-authenticator==0.4.1
 
649
  # via planning-ai (pyproject.toml)
 
 
650
  sympy==1.13.3
651
  # via onnxruntime
652
  tabulate==0.9.0
 
97
  contourpy==1.3.1
98
  # via matplotlib
99
  cryptography==44.0.1
100
+ # via
101
+ # streamlit-authenticator
102
+ # unstructured-client
103
  cycler==0.12.1
104
  # via matplotlib
105
  cymem==2.0.11
 
124
  # via unstructured-client
125
  exceptiongroup==1.2.2
126
  # via anyio
 
 
127
  fastapi==0.115.8
128
  # via chromadb
129
  fastexcel==0.13.0
 
643
  streamlit==1.42.2
644
  # via
645
  # planning-ai (pyproject.toml)
 
646
  # streamlit-authenticator
647
+ # streamlit-javascript
648
+ streamlit-authenticator==0.4.3
649
  # via planning-ai (pyproject.toml)
650
+ streamlit-javascript==0.1.5
651
+ # via streamlit-authenticator
652
  sympy==1.13.3
653
  # via onnxruntime
654
  tabulate==0.9.0
uv.lock CHANGED
@@ -2682,7 +2682,7 @@ requires-dist = [
2682
  { name = "spacy", specifier = ">=3.7.6" },
2683
  { name = "spacytextblob", specifier = ">=4.0.0" },
2684
  { name = "streamlit", specifier = ">=1.41.1" },
2685
- { name = "streamlit-authenticator", specifier = ">=0.4.1" },
2686
  { name = "tabulate", specifier = ">=0.9.0" },
2687
  { name = "transformers", specifier = ">=4.44.2" },
2688
  ]
 
2682
  { name = "spacy", specifier = ">=3.7.6" },
2683
  { name = "spacytextblob", specifier = ">=4.0.0" },
2684
  { name = "streamlit", specifier = ">=1.41.1" },
2685
+ { name = "streamlit-authenticator", specifier = ">=0.4.2" },
2686
  { name = "tabulate", specifier = ">=0.9.0" },
2687
  { name = "transformers", specifier = ">=4.44.2" },
2688
  ]