AIdeaText commited on
Commit
b86c7ed
verified
1 Parent(s): be86bde

Update modules/semantic/semantic_interface.py

Browse files
modules/semantic/semantic_interface.py CHANGED
@@ -206,28 +206,28 @@ def display_semantic_results(semantic_result, lang_code, semantic_t):
206
  # Gr谩fico de conceptos
207
  # st.subheader(semantic_t.get('concept_graph', 'Concepts Graph'))
208
  #Colocar aqu铆 el bloque de c贸digo
209
- if 'concept_graph' in analysis and analysis['concept_graph'] is not None:
210
- try:
211
- # Container para el grafo con estilos mejorados
212
- st.markdown(
213
- """
214
- <style>
215
- .graph-container {
216
- background-color: white;
217
- border-radius: 10px;
218
- padding: 20px;
219
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
220
- margin: 10px 0;
221
- }
222
- .button-container {
223
- display: flex;
224
- gap: 10px;
225
- margin: 10px 0;
226
- }
227
- </style>
228
- """,
229
- unsafe_allow_html=True
230
- )
231
  #Colocar aqu铆 el bloque de c贸digo
232
 
233
  with st.container():
 
206
  # Gr谩fico de conceptos
207
  # st.subheader(semantic_t.get('concept_graph', 'Concepts Graph'))
208
  #Colocar aqu铆 el bloque de c贸digo
209
+ if 'concept_graph' in analysis and analysis['concept_graph'] is not None:
210
+ try:
211
+ # Container para el grafo con estilos mejorados
212
+ st.markdown(
213
+ """
214
+ <style>
215
+ .graph-container {
216
+ background-color: white;
217
+ border-radius: 10px;
218
+ padding: 20px;
219
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
220
+ margin: 10px 0;
221
+ }
222
+ .button-container {
223
+ display: flex;
224
+ gap: 10px;
225
+ margin: 10px 0;
226
+ }
227
+ </style>
228
+ """,
229
+ unsafe_allow_html=True
230
+ )
231
  #Colocar aqu铆 el bloque de c贸digo
232
 
233
  with st.container():