"""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.")