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, 4, 7, 25), 'streamlit.header', 'st.header', ({(7, 14, 7, 24): '"""identify"""'}, {}), "('identify')", True, 'import streamlit as st\n'), ((8, 12, 8, 23), 'ui.session_state.get_state', 'get_state', ({}, {}), '()', False, 'from ui.session_state import SessionState, get_state\n'), ((10, 8, 10, 50), 'streamlit.error', 'st.error', ({(10, 17, 10, 49): '"""Please create the model first!"""'}, {}), "('Please create the model first!')", True, 'import streamlit as st\n')]