Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,15 +85,15 @@ def user_login_create():
|
|
85 |
users = None
|
86 |
snapshot_download(repo_id='JVice/try-before-you-bias-data',repo_type='dataset',local_dir='user_data')
|
87 |
newPath = 'user_data/data/user_database.yaml'
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
|
98 |
with st.sidebar:
|
99 |
st.image(TBYB_LOGO, width=70)
|
|
|
85 |
users = None
|
86 |
snapshot_download(repo_id='JVice/try-before-you-bias-data',repo_type='dataset',local_dir='user_data')
|
87 |
newPath = 'user_data/data/user_database.yaml'
|
88 |
+
with open(newPath) as file:
|
89 |
+
users = yaml.load(file, Loader=SafeLoader)
|
90 |
+
AUTHENTICATOR = stauth.Authenticate(
|
91 |
+
users['credentials'],
|
92 |
+
users['cookie']['name'],
|
93 |
+
users['cookie']['key'],
|
94 |
+
users['cookie']['expiry_days'],
|
95 |
+
users['preauthorized']
|
96 |
+
)
|
97 |
|
98 |
with st.sidebar:
|
99 |
st.image(TBYB_LOGO, width=70)
|