class_docstr: A ready-to-use Response Generator  model
  
  The class can be used to generate and continue dialogue given the user input.
  The given YAML must contain the fields specified in the *_NEEDED[] lists.
  It needs to be used with custom.py to load the expanded  model with added tokens like bos,eos, and speaker's tokens.
code: def __init__(self, *args, **kwargs):
      super().__init__(*args, **kwargs)
      #  Load model
      self.model = self.hparams.model
      self.tokenizer = self.model.tokenizer
      self.history_window = 2 * self.hparams.max_history + 1
      self.history = []
  
imports: import torch
  from itertools import chain
  from speechbrain.inference.interfaces import Pretrained, EncodeDecodePipelineMixin
label_desc: Use image node_id 1 to create a new ResponseGenerator object from inherited base classes: Pretrained with example: obj = ResponseGenerator()