File size: 599 Bytes
8018595
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Legacy v1 profile page components for Streamlit UI."""

import streamlit as st


def render():
    """Renders the V1 view of the Profile page (JSON Viewer)."""

    st.markdown("### V1: Simple JSON Viewer")
    st.info(
        "This view displays the raw JSON of the loaded user profile. It is not editable."
    )

    profile = st.session_state.get("user_profile")

    if profile is not None:
        # Display the profile using st.json for clarity and robustness
        st.json(profile.model_dump_json())
    else:
        st.warning("No user profile loaded. Please create or upload one.")