docstr: Run as a service.
docstr_tok: ["Run","as","a","service","."]
code: def serving_method(self, text_prompts, **kwargs):
      """
      Run as a service.
      """
      results = self.generate_image(
          text_prompts=text_prompts, **kwargs
      ).to_base64()
      return results
  
imports: import argparse
  import ast
  import os
  import sys
  from functools import partial
  from typing import List
  from typing import Optional
  import paddle
  import disco_diffusion_clip_vitb32.clip
  import disco_diffusion_clip_vitb32.resize_right
  import paddlehub
  from disco_diffusion_clip_vitb32.reverse_diffusion import create
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 2 for calling the DiscoDiffusionClip obj's underlying member method code with example usage: obj.serving_method(text_prompts) and returns: results