Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,10 @@ USER_LOGGED_IN = False
|
|
22 |
base_user_database_path = './data/user_database.yaml'
|
23 |
|
24 |
|
25 |
-
USER_DATABASE_DIR = Path("
|
26 |
USER_DATABASE_DIR.mkdir(parents=True, exist_ok=True)
|
27 |
|
28 |
-
USER_DATABASE_PATH = USER_DATABASE_DIR / f"user_database
|
29 |
|
30 |
USER_DATABASE_UPDATE_SCHEDULER = CommitScheduler(
|
31 |
repo_id="try-before-you-bias-data",
|
@@ -80,7 +80,7 @@ def user_login_create():
|
|
80 |
global TBYB_LOGO
|
81 |
global USER_LOGGED_IN
|
82 |
users = None
|
83 |
-
with open(
|
84 |
users = yaml.load(file, Loader=SafeLoader)
|
85 |
AUTHENTICATOR = stauth.Authenticate(
|
86 |
users['credentials'],
|
|
|
22 |
base_user_database_path = './data/user_database.yaml'
|
23 |
|
24 |
|
25 |
+
USER_DATABASE_DIR = Path("data")
|
26 |
USER_DATABASE_DIR.mkdir(parents=True, exist_ok=True)
|
27 |
|
28 |
+
USER_DATABASE_PATH = USER_DATABASE_DIR / f"user_database.yaml"
|
29 |
|
30 |
USER_DATABASE_UPDATE_SCHEDULER = CommitScheduler(
|
31 |
repo_id="try-before-you-bias-data",
|
|
|
80 |
global TBYB_LOGO
|
81 |
global USER_LOGGED_IN
|
82 |
users = None
|
83 |
+
with open(USER_DATABASE_PATH) as file:
|
84 |
users = yaml.load(file, Loader=SafeLoader)
|
85 |
AUTHENTICATOR = stauth.Authenticate(
|
86 |
users['credentials'],
|