AIdeaText commited on
Commit
d2b87a2
verified
1 Parent(s): 954851e

Update modules/ui/ui.py

Browse files
Files changed (1) hide show
  1. modules/ui/ui.py +2 -3
modules/ui/ui.py CHANGED
@@ -293,9 +293,8 @@ def display_student_progress(username, lang_code='es'):
293
  if 'network_diagram' in entry:
294
  try:
295
  # Intentar decodificar la imagen si est谩 en formato base64
296
- #image_bytes = base64.b64decode(entry['network_diagram'])
297
- st.image(f"data:image/png;base64,{entry['relations_graph']}")
298
- #st.image(image_bytes)
299
  except Exception as e:
300
  st.error(f"No se pudo mostrar la imagen: {str(e)}")
301
  st.write("Datos de la imagen (para depuraci贸n):")
 
293
  if 'network_diagram' in entry:
294
  try:
295
  # Intentar decodificar la imagen si est谩 en formato base64
296
+ image_bytes = base64.b64decode(entry['relations_graph'])
297
+ st.image(image_bytes)
 
298
  except Exception as e:
299
  st.error(f"No se pudo mostrar la imagen: {str(e)}")
300
  st.write("Datos de la imagen (para depuraci贸n):")