class_docstr: TEXT IO
  Example:
  
  .. code-block:: python
  
      from towhee import AutoPipes, api_service
      from towhee.serve.io import TEXT, NDARRAY, JSON, BYTES
  
      service = api_service.APIService(desc="Welcome")
      stn = AutoPipes.pipeline('sentence_embedding')
  
      @service.api(path='/embedding', input_model=TEXT(), output_model=NDARRAY())
      def chat(text: str):
          return stn(text).to_list()[0][0]
  
  Client:
      HTTP:
  
      .. code-block:: python
  
          import requests
          requests.post('http://127.0.0.1:8000/embedding', json='Hello, Towhee').json()
  
      GRPC:
  
      .. code-block:: python
  
          from towhee.serve.grpc.client import Client
          c = Client('0.0.0.0', 8000)
          print(c('/embedding', 'Hello, Towhee '))
code: def from_proto(self, content: "service_pb2.Content") -> str:
      return content.text
  
file_path: towhee/towhee/serve/io/text_io.py
imports: import asyncio
  from typing import Any
  from .base import IOBase, IOType
  from towhee.utils.serializer import to_json
label_desc: Use image node_id 3 for calling the TEXT obj's underlying member method code with example usage: obj.from_proto(content) and returns: content