Baessler-Lab / swag-tag

A Streamlit-based webapp for annotation of medical images and reports.
2 stars 0 forks source link

feat (annotation): Load already stored annotations (by default). #17

Closed laqua-stack closed 1 year ago

laqua-stack commented 1 year ago

Feature Request

Is your feature request related to a problem?

Currently when one changes a case, the selected tags remain active. Even if there has been a previous annotation, it is not displayed.

Describe the solution you'd like:

Automatically check for existing annotations in the PostgresDB and load the latest. Otherwise on case change/startup the widgets should be reset. There may arise some issues with st.session_state alterations when using widgets.

Describe alternatives you've considered. None

Additional Context

A context for selecting an annotation with a specific timestamp (e.g. dropdown st.selectbox) would make sense as well.