AIdeaText commited on
Commit
e5f8902
·
verified ·
1 Parent(s): 9e10a80

Update modules/semantic/semantic_interface.py

Browse files
modules/semantic/semantic_interface.py CHANGED
@@ -237,13 +237,13 @@ def display_semantic_results(semantic_result, lang_code, semantic_t):
237
  #with st.container():
238
  #st.markdown('<div class="graph-container">', unsafe_allow_html=True)
239
 
240
- # Mostrar el gráfico directamente sin el div adicional
241
- graph_bytes = analysis['concept_graph']
242
- graph_base64 = base64.b64encode(graph_bytes).decode()
243
- st.markdown(
244
- f'<img src="data:image/png;base64,{graph_base64}" alt="Concept Graph" style="width:100%;"/>',
245
- unsafe_allow_html=True
246
- )
247
 
248
  # Leyenda del grafo
249
  #st.caption(semantic_t.get(
 
237
  #with st.container():
238
  #st.markdown('<div class="graph-container">', unsafe_allow_html=True)
239
 
240
+ # Mostrar el gráfico directamente sin el div adicional
241
+ graph_bytes = analysis['concept_graph']
242
+ graph_base64 = base64.b64encode(graph_bytes).decode()
243
+ st.markdown(
244
+ f'<img src="data:image/png;base64,{graph_base64}" alt="Concept Graph" style="width:100%;"/>',
245
+ unsafe_allow_html=True
246
+ )
247
 
248
  # Leyenda del grafo
249
  #st.caption(semantic_t.get(