hack-acvss-2025 / app.py
ImedHa's picture
Update app.py
1cfaa41 verified
import os
# Set Streamlit config directory to a writable folder (/tmp here is typically writable)
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
# Disable browser usage stats collection to avoid writing files
os.environ["STREAMLIT_BROWSER_GATHERUSAGESTATS"] = "false"
import streamlit as st
import main_dashboard
import about_page
import datasets_page
import system_test_page
st.set_page_config(page_title="Surgical Scene Understanding", page_icon="🩺", layout="wide")
with st.sidebar:
st.markdown("## 🩺 Surgical Scene Understanding")
page = st.radio(
"Navigation",
[
"🏠 Main Dashboard",
"🧪 Test System",
"📂 Dataset",
"ℹ️ About"
],
label_visibility="collapsed"
)
if page.startswith("🏠"):
main_dashboard.show()
elif page.startswith("🧪"):
system_test_page.show()
elif page.startswith("📂"):
datasets_page.show()
elif page.startswith("ℹ️"):
about_page.show()