cjber commited on
Commit
b83641e
·
1 Parent(s): 623395d

fix: auth checking

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -12,10 +12,8 @@ from planning_ai.preprocessing.azure_doc import azure_process_pdfs
12
  from planning_ai.preprocessing.gcpt3 import main as preprocess_main
13
 
14
  # Load authentication secrets
15
- if Path(".streamlit/secrets.toml").exists():
16
- auth = st.secrets.to_dict()
17
- else:
18
- auth = {}
19
  auth["credentials"] = {
20
  "usernames": {
21
  "admin": {
 
12
  from planning_ai.preprocessing.gcpt3 import main as preprocess_main
13
 
14
  # Load authentication secrets
15
+ auth = st.secrets.to_dict()
16
+ if "credentials" not in auth:
 
 
17
  auth["credentials"] = {
18
  "usernames": {
19
  "admin": {