def update_state(self, inpt):
        """
        Retrieve updated state by querying the Ludwig model.

        :param inpt: the current input (usually the nlu output)
        :return:
        """

        if not self.model:
            print('ERROR! Ludwig DST model not initialized!')
            return pd.DataFrame({'empty': [0]})

        # Warning: Make sure the same tokenizer that was used to train the
        # model is used during prediction
        return self.model.predict(pd.DataFrame(data=inpt))

        Retrieve updated state by querying the Ludwig model.

        :param inpt: the current input (usually the nlu output)
        :return:
        
plato/agent/component/dialogue_state_tracker/ludwig_dst.py