ClauseGuard-AI / clauseguard /pages /1_πŸ“‹_Clauses.py
muhammadbinmurtza
Multi-page Streamlit: shared ui.py, pages for Clauses/Negotiation/Chat/Downloads
e59dc17
Raw History Blame Contribute Delete
665 Bytes
import sys; from pathlib import Path; sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
import streamlit as st
from clauseguard.ui import _init_session_state, render_sidebar, render_clauses_tab, CUSTOM_CSS
st.set_page_config(page_title="Clauses β€” ClauseGuard", page_icon="πŸ›‘οΈ", layout="wide", initial_sidebar_state="expanded")
st.markdown(CUSTOM_CSS, unsafe_allow_html=True)
_init_session_state()
render_sidebar()
if st.session_state.report is None:
st.warning("No analysis yet. Upload a contract on the **Home** page first, or click **Instant Demo**.")
st.stop()
st.markdown("## πŸ“‹ Clause-by-Clause Analysis")
render_clauses_tab()