Run qr2ai/prompt_generator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"qr2ai/prompt_generator:410afb326b6bec9988701a47f004e8bfddea90587d2fd2c5e5ead6ddddc2d56b",
input={
"image_pth": "https://replicate.delivery/pbxt/LHPvcPuhfaOKc7awWZemVvQbg1LfBXLe1cSchjPaokW8az79/Screenshot%202024-02-23%20at%206.54.08%E2%80%AFAM.jpg"
}
)
# 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())