def generate_output(self, args=None):
        """
        Generate output, used by the Generic Agent.

        :param args:
        :return:
        """
        if not args:
            print('WARNING! MetalWOZ called without arguments!')
            return ''

        utterance = args['args']

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

        result = self.model.predict(pd.DataFrame(data={'user': [utterance]}))

        sys_text = ' '.join([x for x in result['system_predictions'][0]])
        sys_text = sys_text.replace(' <PAD>', '')

        return sys_text

        Generate output, used by the Generic Agent.

        :param args:
        :return:
        
plato/agent/component/joint_model/metal_woz_seq2seq.py