towhee.engine.factory.pipeline(pipeline_src: str, tag: str = 'main', install_reqs: bool = True, **kwargs)[source]

Entry method which takes either an input task or path to an operator YAML.

A Pipeline object is created (based on said task) and subsequently added to the existing Engine.

  • pipeline_src (str) – pipeline name or YAML file location to use.

  • tag (str) – Which tag to use for operators/pipelines on hub, defaults to main.

  • install_reqs (bool) – Whether to download the python packages if a requirements.txt file is included in the repo.


The Pipeline output.