()
return g.app_state
Get current status of application in context

    Returns:
        :obj:`dict` of application status
Get current status of application in context
Get current status of application in context
def get_app_state():
    """Get current status of application in context

    Returns:
        :obj:`dict` of application status

    """
    if not hasattr(g, 'app_state'):
        model = get_model()
        g.app_state = {
            'app_title': APP_TITLE,
            'model_name': type(model).__name__,
            'latest_ckpt_name': model.latest_ckpt_name,
            'latest_ckpt_time': model.latest_ckpt_time
        }
    return g.app_state
def get_app_state ( ) : if not hasattr ( g , 'app_state' ) : model = get_model ( ) g . app_state = { 'app_title' : APP_TITLE , 'model_name' : type ( model ) . __name__ , 'latest_ckpt_name' : model . latest_ckpt_name , 'latest_ckpt_time' : model . latest_ckpt_time } return g . app_state