Spaces:
Sleeping
Sleeping
File size: 1,162 Bytes
a91d88d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | """
Human+ Page Modules
===================
Setiap file adalah satu step dalam 3-step user flow.
Dipanggil dari streamlit_app.py berdasarkan st.session_state.step.
Flow:
step 1 β pages/upload.py β Upload PDF lab
step 2 β pages/analysis.py β AI analysis + biomarker dashboard
step 3 β pages/protocol.py β Protocol generation + PDF download
Cara pakai (dari streamlit_app.py):
from pages.upload import render_upload_page
from pages.analysis import render_analysis_page
from pages.protocol import render_protocol_page
Session state yang digunakan antar page:
st.session_state.step β int: current step (1|2|3)
st.session_state.uploaded_pdf_bytes β bytes | None
st.session_state.pdf_filename β str | None
st.session_state.extracted_biomarkers β list[dict] | None
st.session_state.generated_protocol β dict | None
"""
from pages.upload import render_upload_page
from pages.analysis import render_analysis_page
from pages.protocol import render_protocol_page
__all__ = [
"render_upload_page",
"render_analysis_page",
"render_protocol_page",
]
|