-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
36 lines (30 loc) · 754 Bytes
/
config.py
File metadata and controls
36 lines (30 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
Configuration settings for the Flask application
"""
import os
class Config:
"""Base configuration"""
SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-secret-key-change-in-production'
DEBUG = False
HOST = '0.0.0.0'
PORT = 5000
# Model configuration
N_ESTIMATORS = 50
RANDOM_STATE = 42
FINGERPRINT_BITS = 2048
MORGAN_RADIUS = 2
class DevelopmentConfig(Config):
"""Development configuration"""
DEBUG = True
class ProductionConfig(Config):
"""Production configuration"""
DEBUG = False
SECRET_KEY = os.environ.get('SECRET_KEY')
class TestingConfig(Config):
"""Testing configuration"""
TESTING = True
DEBUG = True
# Default config
DEBUG = True
HOST = '0.0.0.0'
PORT = 5000