Run mattrothenberg/cat-polaroids using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"mattrothenberg/cat-polaroids",
input={
"date_text": "",
"polaroid_text": ""
}
)
# 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())