Update modules/__init__.py
Browse files- modules/__init__.py +13 -3
modules/__init__.py
CHANGED
@@ -29,7 +29,8 @@ def load_database_function():
|
|
29 |
'store_discourse_analysis_result': store_discourse_analysis_result,
|
30 |
'store_chat_history': store_chat_history,
|
31 |
'create_admin_user': create_admin_user,
|
32 |
-
'create_student_user': create_student_user
|
|
|
33 |
}
|
34 |
|
35 |
def load_ui_functions():
|
@@ -43,7 +44,8 @@ def load_ui_functions():
|
|
43 |
display_morphosyntax_analysis_interface,
|
44 |
display_semantic_analysis_interface,
|
45 |
display_discourse_analysis_interface,
|
46 |
-
display_chatbot_interface
|
|
|
47 |
)
|
48 |
return {
|
49 |
'main': main,
|
@@ -55,7 +57,14 @@ def load_ui_functions():
|
|
55 |
'display_morphosyntax_analysis_interface': display_morphosyntax_analysis_interface,
|
56 |
'display_semantic_analysis_interface': display_semantic_analysis_interface,
|
57 |
'display_discourse_analysis_interface': display_discourse_analysis_interface,
|
58 |
-
'display_chatbot_interface': display_chatbot_interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
|
61 |
def load_admin_functions():
|
@@ -132,4 +141,5 @@ def load_all_functions():
|
|
132 |
**discourse_analysis_text_functions(),
|
133 |
**spacy_utils_functions(),
|
134 |
**chatbot_functions()
|
|
|
135 |
}
|
|
|
29 |
'store_discourse_analysis_result': store_discourse_analysis_result,
|
30 |
'store_chat_history': store_chat_history,
|
31 |
'create_admin_user': create_admin_user,
|
32 |
+
'create_student_user': create_student_user,
|
33 |
+
'store_user_feedback': store_user_feedback,
|
34 |
}
|
35 |
|
36 |
def load_ui_functions():
|
|
|
44 |
display_morphosyntax_analysis_interface,
|
45 |
display_semantic_analysis_interface,
|
46 |
display_discourse_analysis_interface,
|
47 |
+
display_chatbot_interface,
|
48 |
+
display_feedback_form
|
49 |
)
|
50 |
return {
|
51 |
'main': main,
|
|
|
57 |
'display_morphosyntax_analysis_interface': display_morphosyntax_analysis_interface,
|
58 |
'display_semantic_analysis_interface': display_semantic_analysis_interface,
|
59 |
'display_discourse_analysis_interface': display_discourse_analysis_interface,
|
60 |
+
'display_chatbot_interface': display_chatbot_interface,
|
61 |
+
'display_feedback_form': display_feedback_form
|
62 |
+
}
|
63 |
+
|
64 |
+
def load_email_functions():
|
65 |
+
from modules.email.email import send_email_notification
|
66 |
+
return {
|
67 |
+
'send_email_notification': send_email_notification
|
68 |
}
|
69 |
|
70 |
def load_admin_functions():
|
|
|
141 |
**discourse_analysis_text_functions(),
|
142 |
**spacy_utils_functions(),
|
143 |
**chatbot_functions()
|
144 |
+
**load_email_functions()
|
145 |
}
|