Update modules/ui/ui.py
Browse files- modules/ui/ui.py +2 -1
modules/ui/ui.py
CHANGED
@@ -293,7 +293,8 @@ def display_student_progress(username, lang_code='es'):
|
|
293 |
if 'relations_graph' 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)}")
|
|
|
293 |
if 'relations_graph' 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(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)}")
|