-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.py
24 lines (16 loc) · 800 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from pathlib import Path
from src.examples.f1_precision_recall_example import ExampleEvaluator
# The class used for the evaluation of the users' submissions.
EVALUATOR_CLASS = ExampleEvaluator
EVALUATOR_KWARGS = {}
# The directory in which the users' submissions will be saved
SUBMISSIONS_DIR = Path(__file__).parent.parent.absolute() / 'user_submissions'
# The name of the encrypted passwords file
PASSWORDS_DB_FILE = Path(__file__).parent.parent.absolute() / 'passwords.db'
ARGON2_KWARGS = {}
# Maximum number of users allowed in the system. If None, no limitation is enforced.
MAX_NUM_USERS = None
# The extension type required for a submission file (e.g. ".json"). If None, any extension is allowed.
ALLOWED_SUBMISSION_FILE_EXTENSION = 'json'
SHOW_TOP_K_ONLY = 5
ADMIN_USERNAME = 'admin'