Spaces:
Running
Running
Update modules/__init__.py
Browse files- modules/__init__.py +39 -1
modules/__init__.py
CHANGED
|
@@ -9,6 +9,33 @@ def load_auth_functions():
|
|
| 9 |
'delete_student': delete_student
|
| 10 |
}
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
def load_database_functions():
|
| 13 |
|
| 14 |
from .database.database_init import (
|
|
@@ -63,9 +90,19 @@ def load_database_functions():
|
|
| 63 |
get_student_discourse_data
|
| 64 |
)
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
from .database.chat_mongo_db import store_chat_history, get_chat_history
|
| 67 |
|
| 68 |
return {
|
|
|
|
|
|
|
|
|
|
| 69 |
'initialize_database_connections': initialize_database_connections,
|
| 70 |
'get_container': get_container,
|
| 71 |
'get_mongodb': get_mongodb,
|
|
@@ -214,5 +251,6 @@ def load_all_functions():
|
|
| 214 |
**load_discourse_functions(),
|
| 215 |
**load_utils_functions(),
|
| 216 |
**load_chatbot_functions(),
|
| 217 |
-
**load_student_activities_functions()
|
|
|
|
| 218 |
}
|
|
|
|
| 9 |
'delete_student': delete_student
|
| 10 |
}
|
| 11 |
|
| 12 |
+
# Agregar nuevo import para current_situation
|
| 13 |
+
def load_current_situation_functions():
|
| 14 |
+
"""
|
| 15 |
+
Carga las funciones relacionadas con el an谩lisis de situaci贸n actual.
|
| 16 |
+
Returns:
|
| 17 |
+
dict: Diccionario con las funciones de situaci贸n actual
|
| 18 |
+
"""
|
| 19 |
+
from .studentact.current_situation_interface import (
|
| 20 |
+
display_current_situation_interface,
|
| 21 |
+
display_current_situation_visual
|
| 22 |
+
)
|
| 23 |
+
from .studentact.current_situation_analysis import (
|
| 24 |
+
analyze_text_dimensions,
|
| 25 |
+
create_vocabulary_network,
|
| 26 |
+
create_syntax_complexity_graph,
|
| 27 |
+
create_cohesion_heatmap
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
return {
|
| 31 |
+
'display_current_situation_interface': display_current_situation_interface,
|
| 32 |
+
'display_current_situation_visual': display_current_situation_visual,
|
| 33 |
+
'analyze_text_dimensions': analyze_text_dimensions,
|
| 34 |
+
'create_vocabulary_network': create_vocabulary_network,
|
| 35 |
+
'create_syntax_complexity_graph': create_syntax_complexity_graph,
|
| 36 |
+
'create_cohesion_heatmap': create_cohesion_heatmap
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
def load_database_functions():
|
| 40 |
|
| 41 |
from .database.database_init import (
|
|
|
|
| 90 |
get_student_discourse_data
|
| 91 |
)
|
| 92 |
|
| 93 |
+
# Agregar nueva importaci贸n para current_situation
|
| 94 |
+
from .database.current_situation_mongo_db import (
|
| 95 |
+
store_current_situation_result,
|
| 96 |
+
get_student_situation_history,
|
| 97 |
+
update_exercise_status
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
from .database.chat_mongo_db import store_chat_history, get_chat_history
|
| 101 |
|
| 102 |
return {
|
| 103 |
+
'store_current_situation_result': store_current_situation_result,
|
| 104 |
+
'get_student_situation_history': get_student_situation_history,
|
| 105 |
+
'update_exercise_status': update_exercise_status,
|
| 106 |
'initialize_database_connections': initialize_database_connections,
|
| 107 |
'get_container': get_container,
|
| 108 |
'get_mongodb': get_mongodb,
|
|
|
|
| 251 |
**load_discourse_functions(),
|
| 252 |
**load_utils_functions(),
|
| 253 |
**load_chatbot_functions(),
|
| 254 |
+
**load_student_activities_functions(),
|
| 255 |
+
**load_current_situation_functions() # Agregar el nuevo loader
|
| 256 |
}
|