code: def setup(
      self,
      **kwargs,
  ):
      if self.api_type in (const.IMAGE_CLF, const.OBJECT_DETECTION):
          self.api_type_func[
              self.api_type
          ] = self.single_x_classification
      elif self.api_type == const.TXT_CLF:
          self.api_type_func[
              self.api_type
          ] = self.single_x_classification
      else:
          raise NotImplementedError(
              f"api_type={self.api_type} not implemented yet!"
          )
  
      if not self.input_types:
          self.input_types = self.get_input_type(**kwargs)
  
      if not self.output_types:
          self.output_types = "json"
  
file_path: chitra/chitra/serve/app.py
imports: from typing import Callable, List, Optional, Union
  import gradio
  import numpy
  from chitra.__about__ import documentation_url
  from chitra.serve import constants
  from chitra.serve.base import ModelServer
label_desc: Use image node_id 2 for calling the GradioApp obj's underlying member method code with example usage: obj.setup() without return types