Run pipelines-beta/hello-replicate-pipeline using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pipelines-beta/hello-replicate-pipeline",
input={}
)
# To access the file URL:print(output.url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output.read())