import streamlit as st
from ui.session_state import SessionState, get_state
from infer import ModelStage


def show(state: SessionState):
    st.header("identify")
    state = get_state()
    if state.model.stage < ModelStage.DEFINED:
        st.error("Please create the model first!")

[(7, 'streamlit.header', 'st.header', True, 'import streamlit as st\n'), (8, 'ui.session_state.get_state', 'get_state', False, 'from ui.session_state import SessionState, get_state\n'), (10, 'streamlit.error', 'st.error', True, 'import streamlit as st\n')]