docstr: Custom output UI.
  
  If this method is implmeneted, it will be used instead of the default Output UI renderer.
docstr_tok: ["Custom","output","UI",".","If","this","method","is","implmeneted",",","it","will","be","used","instead","of","the","default","Output","UI","renderer","."]
code: def render_output_ui(self, streamlit, input) -> None:  # type: ignore
      """Custom output UI.
  
      If this method is implmeneted, it will be used instead of the default Output UI renderer.
      """
      from annotated_text import annotated_text
  
      TYPE_TO_COLOR = {
          Entity.ORG: "#8ef",
          Entity.PERSON: "#faa",
          Entity.TIME: "#afa",
          Entity.DATE: "#ABEBC6",
          Entity.GPE: "#FF7F50",
          Entity.MONEY: "#6495ED",
      }
  
      text_parts = []
      last_index = 0
      for item in sorted(self.__root__, key=lambda x: x.start_char):
          text_part = input.text[last_index : item.start_char]
          if text_part:
              text_parts.append(text_part)
          text_parts.append(
              (
                  input.text[item.start_char : item.end_char],
                  item.label.value,
                  TYPE_TO_COLOR[item.label],
              )
          )
          last_index = item.end_char
  
      text_part = input.text[last_index : len(input.text)]
      if text_part:
          text_parts.append(text_part)
      annotated_text(*text_parts)
  
file_path: opyrator/examples/named_entity_recognition/app.py
imports: from enum import Enum
  from typing import List, Set
  import spacy
  from pydantic import BaseModel, Field
label_desc: Use image node_id 1 for calling the NamedEntitiesOutput obj's underlying member method code with example usage: obj.render_output_ui(streamlit, input) without return types