-
Notifications
You must be signed in to change notification settings - Fork 714
/
config.py
executable file
·41 lines (33 loc) · 1.02 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import os
class BaseConfig(object):
DEBUG = False
Development = False
MONGODB_HOST = "mongodb://127.0.0.1:27017/iky-ai"
# Intent Classifier model details
MODELS_DIR = "model_files/"
INTENT_MODEL_NAME = "intent.model"
DEFAULT_FALLBACK_INTENT_NAME = "fallback"
DEFAULT_WELCOME_INTENT_NAME = "init_conversation"
USE_WORD_VECTORS = True
SPACY_LANG_MODEL = "en_core_web_md"
class DevelopmentConfig(BaseConfig):
DEBUG = True
Development = True
TEMPLATES_AUTO_RELOAD=True
class TestingConfig(BaseConfig):
DEBUG = True
TESTING = True
class ProductionConfig(BaseConfig):
# MongoDB Database Details
MONGODB_HOST = "mongodb://mongodb:27017/iky-ai"
class HerokuConfig(ProductionConfig):
MONGODB_HOST = os.environ.get('MONGO_URL')
class HelmConfig(ProductionConfig):
MONGODB_HOST = os.environ.get('MONGO_URL')
config = {
'Development': DevelopmentConfig,
'Testing': TestingConfig,
'Production': ProductionConfig,
'Heroku': HerokuConfig,
'Helm': HelmConfig
}