Sebastian Gehrmann
Continue
b03f385
raw
history blame
1.8 kB
import streamlit as st
from .streamlit_utils import (
make_text_input
)
N_FIELDS = 1
def curation_page():
st.session_state.card_dict["curation"] = st.session_state.card_dict.get("curation", {})
with st.expander("Original Curation", expanded=False):
key_pref = ["curation", "original"]
st.session_state.card_dict["curation"]["original"] = st.session_state.card_dict["curation"].get("original", {})
with st.expander("Language Data", expanded=False):
key_pref = ["curation", "language"]
st.session_state.card_dict["curation"]["language"] = st.session_state.card_dict["curation"].get("language", {})
with st.expander("Structured Annotations", expanded=False):
key_pref = ["curation", "annotations"]
st.session_state.card_dict["curation"]["annotations"] = st.session_state.card_dict["curation"].get("annotations", {})
with st.expander("Consent", expanded=False):
key_pref = ["curation", "consent"]
st.session_state.card_dict["curation"]["consent"] = st.session_state.card_dict["curation"].get("consent", {})
with st.expander("Personal and Sensitive information", expanded=False):
key_pref = ["curation", "pii"]
st.session_state.card_dict["curation"]["pii"] = st.session_state.card_dict["curation"].get("pii", {})
with st.expander("Maintenance", expanded=False):
key_pref = ["curation", "maintenance"]
st.session_state.card_dict["curation"]["maintenance"] = st.session_state.card_dict["curation"].get("maintenance", {})
with st.expander("GEM Curation", expanded=False):
key_pref = ["curation", "gem"]
st.session_state.card_dict["curation"]["gem"] = st.session_state.card_dict["curation"].get("gem", {})
def curation_summary():
return None