towhee.engine.factory.op(operator_src: str, tag: str = 'main', arg: List[Any] = [], kwargs: Dict[str, Any] = {})[source]

Entry method which takes either operator tasks or paths to python files or class in notebook. An Operator object is created with the init args(kwargs). :param operator_src: operator name or python file location or class in notebook. :type operator_src: str :param tag: Which tag to use for operators on hub, defaults to main. :type tag: str


The Operator output.