Spaces:
Build error
Build error
fix: auth checking
Browse files
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 |
-
|
16 |
-
|
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": {
|