code: def get_input_type(self, **kwargs):
      label = kwargs.get("label")
      if self.api_type in (const.IMAGE_CLF, const.OBJECT_DETECTION):
          return gr.inputs.Image(
              shape=kwargs.get("image_shape"), label=label
          )
  
      if self.api_type == const.TXT_CLF:
          return gr.inputs.Textbox(
              lines=2,
              placeholder=kwargs.get("text_placeholder"),
              label=label,
          )
      raise NotImplementedError(
          f"{self.api_type} API Type is not implemented yet!"
      )
  
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 3 for calling the GradioApp obj's underlying member method code with example usage: obj.get_input_type() and returns: gr, gr