flow#
- class predict_backend.flow.flow.Flow(name, description, image_path=None, is_shareable=False, sort_key=None)#
Bases:
object
Flows are how workflows are organized in Predict. A flow can contain many
Step
s that can get inputs, run computation, and show results.- Parameters:
name (
str
) – The name of the Flow.description (
str
) – The Flow descriptionimage_path (
Optional
[str
]) – The base64 encoding of an image or a public link to an image, defaults to Noneis_shareable (
Optional
[bool
]) – Whether a given Flow is shareable, defaults to False
- chain(ordered_steps, lock=True)#
Add all steps with one function. Locks flow by default.
- Parameters:
ordered_steps (
list
) – Ordered list of Steps to be added.