Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FOCUS-API: Send back image URLS before the generation is complete #296

Open
fmattera opened this issue Apr 26, 2024 · 0 comments
Open

FOCUS-API: Send back image URLS before the generation is complete #296

fmattera opened this issue Apr 26, 2024 · 0 comments

Comments

@fmattera
Copy link

Hi everyone!

I am using the replicate API to generate some images with focus-api model with the replicate.run() method in python.

As I am generating more images at once, the generation time takes a while (>45s). Because of it, most of the times my application sends back a timeout 524.

I was wondering - is there a way for the replicate API to instantly send back the URL where the output images will stored, while the prediction is running?

This would help me massively, as I could just return the URL to my frontend and just pull the images from there, showing them once they are ready.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant