Spaces:
Sleeping
Sleeping
trying to read from private repo
Browse files
app.py
CHANGED
|
@@ -83,15 +83,16 @@ def user_login_create():
|
|
| 83 |
global TBYB_LOGO
|
| 84 |
global USER_LOGGED_IN
|
| 85 |
users = None
|
| 86 |
-
with
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
| 95 |
|
| 96 |
with st.sidebar:
|
| 97 |
st.image(TBYB_LOGO, width=70)
|
|
|
|
| 83 |
global TBYB_LOGO
|
| 84 |
global USER_LOGGED_IN
|
| 85 |
users = None
|
| 86 |
+
with USER_DATABASE_UPDATE_SCHEDULER:
|
| 87 |
+
with open(USER_DATABASE_PATH, r) as file:
|
| 88 |
+
users = yaml.load(file, Loader=SafeLoader)
|
| 89 |
+
AUTHENTICATOR = stauth.Authenticate(
|
| 90 |
+
users['credentials'],
|
| 91 |
+
users['cookie']['name'],
|
| 92 |
+
users['cookie']['key'],
|
| 93 |
+
users['cookie']['expiry_days'],
|
| 94 |
+
users['preauthorized']
|
| 95 |
+
)
|
| 96 |
|
| 97 |
with st.sidebar:
|
| 98 |
st.image(TBYB_LOGO, width=70)
|