Update modules/__init__.py
Browse files- modules/__init__.py +7 -10
modules/__init__.py
CHANGED
|
@@ -1,50 +1,44 @@
|
|
| 1 |
# modules/__init__.py
|
| 2 |
|
| 3 |
from .auth import authenticate_user, register_user
|
| 4 |
-
|
| 5 |
from .database import (
|
| 6 |
initialize_mongodb_connection,
|
| 7 |
get_student_data,
|
| 8 |
store_morphosyntax_result,
|
| 9 |
store_semantic_result,
|
| 10 |
store_chat_history,
|
| 11 |
-
create_user,
|
| 12 |
create_admin_user,
|
| 13 |
create_student_user
|
| 14 |
)
|
| 15 |
-
|
| 16 |
from .ui import (
|
| 17 |
main,
|
| 18 |
login_register_page,
|
| 19 |
login_form,
|
| 20 |
register_form,
|
|
|
|
| 21 |
display_student_progress,
|
| 22 |
display_morphosyntax_analysis_interface,
|
| 23 |
display_semantic_analysis_interface,
|
| 24 |
display_discourse_analysis_interface,
|
| 25 |
display_chatbot_interface
|
| 26 |
)
|
| 27 |
-
|
| 28 |
from .morpho_analysis import (
|
| 29 |
get_repeated_words_colors,
|
| 30 |
highlight_repeated_words,
|
| 31 |
POS_COLORS,
|
| 32 |
POS_TRANSLATIONS
|
| 33 |
)
|
| 34 |
-
|
| 35 |
from .semantic_analysis import (
|
| 36 |
visualize_semantic_relations,
|
| 37 |
perform_semantic_analysis,
|
| 38 |
create_semantic_graph
|
| 39 |
)
|
| 40 |
-
|
| 41 |
from .discourse_analysis import (
|
| 42 |
perform_discourse_analysis,
|
| 43 |
compare_semantic_analysis
|
| 44 |
)
|
| 45 |
-
|
| 46 |
from .spacy_utils import load_spacy_models
|
| 47 |
-
|
| 48 |
from .chatbot import (
|
| 49 |
initialize_chatbot,
|
| 50 |
get_chatbot_response,
|
|
@@ -59,12 +53,14 @@ __all__ = [
|
|
| 59 |
'store_morphosyntax_result',
|
| 60 |
'store_semantic_result',
|
| 61 |
'store_chat_history',
|
| 62 |
-
'create_user',
|
| 63 |
'create_admin_user',
|
| 64 |
'create_student_user',
|
|
|
|
| 65 |
'login_register_page',
|
| 66 |
'login_form',
|
| 67 |
'register_form',
|
|
|
|
|
|
|
| 68 |
'display_morphosyntax_analysis_interface',
|
| 69 |
'display_semantic_analysis_interface',
|
| 70 |
'display_discourse_analysis_interface',
|
|
@@ -81,5 +77,6 @@ __all__ = [
|
|
| 81 |
'compare_semantic_analysis',
|
| 82 |
'load_spacy_models',
|
| 83 |
'initialize_chatbot',
|
| 84 |
-
'get_chatbot_response'
|
|
|
|
| 85 |
]
|
|
|
|
| 1 |
# modules/__init__.py
|
| 2 |
|
| 3 |
from .auth import authenticate_user, register_user
|
|
|
|
| 4 |
from .database import (
|
| 5 |
initialize_mongodb_connection,
|
| 6 |
get_student_data,
|
| 7 |
store_morphosyntax_result,
|
| 8 |
store_semantic_result,
|
| 9 |
store_chat_history,
|
|
|
|
| 10 |
create_admin_user,
|
| 11 |
create_student_user
|
| 12 |
)
|
|
|
|
| 13 |
from .ui import (
|
| 14 |
main,
|
| 15 |
login_register_page,
|
| 16 |
login_form,
|
| 17 |
register_form,
|
| 18 |
+
user_page,
|
| 19 |
display_student_progress,
|
| 20 |
display_morphosyntax_analysis_interface,
|
| 21 |
display_semantic_analysis_interface,
|
| 22 |
display_discourse_analysis_interface,
|
| 23 |
display_chatbot_interface
|
| 24 |
)
|
| 25 |
+
from .admin_ui import admin_page # Añade esta línea
|
| 26 |
from .morpho_analysis import (
|
| 27 |
get_repeated_words_colors,
|
| 28 |
highlight_repeated_words,
|
| 29 |
POS_COLORS,
|
| 30 |
POS_TRANSLATIONS
|
| 31 |
)
|
|
|
|
| 32 |
from .semantic_analysis import (
|
| 33 |
visualize_semantic_relations,
|
| 34 |
perform_semantic_analysis,
|
| 35 |
create_semantic_graph
|
| 36 |
)
|
|
|
|
| 37 |
from .discourse_analysis import (
|
| 38 |
perform_discourse_analysis,
|
| 39 |
compare_semantic_analysis
|
| 40 |
)
|
|
|
|
| 41 |
from .spacy_utils import load_spacy_models
|
|
|
|
| 42 |
from .chatbot import (
|
| 43 |
initialize_chatbot,
|
| 44 |
get_chatbot_response,
|
|
|
|
| 53 |
'store_morphosyntax_result',
|
| 54 |
'store_semantic_result',
|
| 55 |
'store_chat_history',
|
|
|
|
| 56 |
'create_admin_user',
|
| 57 |
'create_student_user',
|
| 58 |
+
'main',
|
| 59 |
'login_register_page',
|
| 60 |
'login_form',
|
| 61 |
'register_form',
|
| 62 |
+
'user_page',
|
| 63 |
+
'admin_page', # Añade esta línea
|
| 64 |
'display_morphosyntax_analysis_interface',
|
| 65 |
'display_semantic_analysis_interface',
|
| 66 |
'display_discourse_analysis_interface',
|
|
|
|
| 77 |
'compare_semantic_analysis',
|
| 78 |
'load_spacy_models',
|
| 79 |
'initialize_chatbot',
|
| 80 |
+
'get_chatbot_response',
|
| 81 |
+
'ClaudeAPIChat'
|
| 82 |
]
|