Spaces:
Running
Running
Update modules/studentact/current_situation_interface.py
Browse files
modules/studentact/current_situation_interface.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# modules/studentact/current_situation_interface
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
import logging
|
|
@@ -7,6 +7,17 @@ import matplotlib.pyplot as plt
|
|
| 7 |
import numpy as np
|
| 8 |
from ..database.current_situation_mongo_db import store_current_situation_result
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
from .current_situation_analysis import (
|
| 11 |
analyze_text_dimensions,
|
| 12 |
analyze_clarity,
|
|
@@ -20,7 +31,7 @@ from .current_situation_analysis import (
|
|
| 20 |
generate_connection_paths,
|
| 21 |
create_vocabulary_network,
|
| 22 |
create_syntax_complexity_graph,
|
| 23 |
-
create_cohesion_heatmap
|
| 24 |
)
|
| 25 |
|
| 26 |
# Configuraci贸n del estilo de matplotlib para el gr谩fico de radar
|
|
@@ -30,6 +41,7 @@ plt.rcParams['axes.spines.top'] = False
|
|
| 30 |
plt.rcParams['axes.spines.right'] = False
|
| 31 |
|
| 32 |
logger = logging.getLogger(__name__)
|
|
|
|
| 33 |
####################################
|
| 34 |
|
| 35 |
TEXT_TYPES = {
|
|
|
|
| 1 |
+
# modules/studentact/current_situation_interface.py
|
| 2 |
|
| 3 |
import streamlit as st
|
| 4 |
import logging
|
|
|
|
| 7 |
import numpy as np
|
| 8 |
from ..database.current_situation_mongo_db import store_current_situation_result
|
| 9 |
|
| 10 |
+
# Importaciones locales
|
| 11 |
+
from translations import get_translations
|
| 12 |
+
|
| 13 |
+
# Importamos la funci贸n de recomendaciones personalizadas si existe
|
| 14 |
+
try:
|
| 15 |
+
from .claude_recommendations import display_personalized_recommendations
|
| 16 |
+
except ImportError:
|
| 17 |
+
# Si no existe el m贸dulo, definimos una funci贸n placeholder
|
| 18 |
+
def display_personalized_recommendations(text, metrics, text_type, lang_code, t):
|
| 19 |
+
st.warning("M贸dulo de recomendaciones personalizadas no disponible. Por favor, contacte al administrador.")
|
| 20 |
+
|
| 21 |
from .current_situation_analysis import (
|
| 22 |
analyze_text_dimensions,
|
| 23 |
analyze_clarity,
|
|
|
|
| 31 |
generate_connection_paths,
|
| 32 |
create_vocabulary_network,
|
| 33 |
create_syntax_complexity_graph,
|
| 34 |
+
create_cohesion_heatmap
|
| 35 |
)
|
| 36 |
|
| 37 |
# Configuraci贸n del estilo de matplotlib para el gr谩fico de radar
|
|
|
|
| 41 |
plt.rcParams['axes.spines.right'] = False
|
| 42 |
|
| 43 |
logger = logging.getLogger(__name__)
|
| 44 |
+
|
| 45 |
####################################
|
| 46 |
|
| 47 |
TEXT_TYPES = {
|