class_docstr: An HTTP server implemented based on FastAPI
class_docstr_tok: ["An","HTTP","server","implemented","based","on","FastAPI"]
code: def app(self):
      return self._app
  
file_path: towhee/towhee/serve/http/server.py
imports: from typing import Callable
  import inspect
  from functools import partial
  import traceback
  from towhee.utils.thirdparty.fastapi_utils import fastapi
  from towhee.utils.thirdparty.uvicorn_util import uvicorn
  from towhee.serve.io import JSON
  from towhee.utils.log import engine_log
label_desc: Use image node_id 2 for calling the HTTPServer obj's underlying member method code with example usage: obj.app() and returns: self