code: def __init__(self) -> None:
      self.create_ui()
  
imports: import gradio
  import torch
  from mmengine.logging import MMLogger
  from mmdet.apis import DetInferencer
  from projects.XDecoder.xdecoder.inference import ImageCaptionInferencer, RefImageCaptionInferencer, TextToImageRegionRetrievalInferencer
label_desc: Use image node_id 1 to create a new OpenVocabObjectDetectionTab object  with example: obj = OpenVocabObjectDetectionTab()