import streamlit as st from pages import search_engine_page, document_page if "selected_record" not in st.session_state: st.session_state["selected_record"] = None def set_record(record): st.session_state["selected_record"] = record if not st.session_state["selected_record"]: # search engine page search_engine_page() else: # a record has been selected document_page() st.markdown( """
""", unsafe_allow_html=True, )