You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeout can be configured by passing wait=x to replicate.run() where x is a timeout
in seconds between 1 and 60. To disable the sync mode you can pass wait=False.
If you're disabling sync mode with replicate.run, where does that leave you? Async mode? What should it return?
replicate.run has always had a blocking interface at the SDK layer. To create a prediction and return the Prediction object before it completes you need to use the predictions.create() interfaces.
The wait param to run() just controls whether the client attempts to keep the HTTP connection open or uses polling. I can see how the name is confusing.
Client version: 1.0.4
This snippet blocks until the prediction is done:
I'm not really sure what the expected behavior should be here...
The current docs in the README say this:
If you're disabling sync mode with
replicate.run
, where does that leave you? Async mode? What should it return?cc @hbqdev
The text was updated successfully, but these errors were encountered: