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!")

[((142, 163), 'streamlit.header', 'st.header', (['"""identify"""'], {}), "('identify')\n", (151, 163), True, 'import streamlit as st\n'), ((176, 187), 'ui.session_state.get_state', 'get_state', ([], {}), '()\n', (185, 187), False, 'from ui.session_state import SessionState, get_state\n'), ((243, 285), 'streamlit.error', 'st.error', (['"""Please create the model first!"""'], {}), "('Please create the model first!')\n", (251, 285), True, 'import streamlit as st\n')]