YeCanming
feat: presentation
4dcd117
raw
history blame contribute delete
577 Bytes
# utils.py
from pathlib import Path
from enum import Enum, auto
# Base path for studies and trials.
# Streamlit apps are typically run from their root directory.
# If your app.py is in 'src/', and 'data/' is at the same level as 'src/',
# then Path("./data") from app.py's perspective would be Path("../data").
# For simplicity, assuming data is relative to where streamlit run is executed,
# or you adjust this path accordingly.
DATA_ROOT_PATH = Path("./data").resolve()
class AppMode(Enum):
VIEWING = auto()
# Potentially other modes like COMPARISON, EDITING etc.