replicate-python icon indicating copy to clipboard operation
replicate-python copied to clipboard

Python client for Replicate

Results 81 replicate-python issues
Sort by recently updated
recently updated
newest added

Or in api the response is reasonPhrase: "Conflict" -statusCode: 409 Unique index which takes into account soft deletes? Thanks for your help.

Streaming is now enabled by default for all predictions. For more information, see https://replicate.com/changelog/2024-07-15-streams-always-available-stream-parameter-deprecated

I get this error. If I rerun it usually goes thru fine but dies again down the road. (I am trying 300 total question from a professional exam.) I had...

I'm pretty sure I'm sending `max_tokens` and: * I get much more tokens * I also don't see this `max_tokens` when looking at my prediction in the browser When I...

I'm looking to perform online realtime transcription (i.e. with something like `whisper-streaming`) for this we need **FULL DUPLEX** capabilities i.e. the client needs to be able to continually stream data...

i.e. the `base_url` should be `https://api.replicate.com/v1` and `v1` should be dropped in all client request paths. This is in line with the the JavaScript [client](https://github.com/replicate/replicate-javascript/blob/ac75077c4b5e126798e9b8e820476ca58f7961a5/index.js#L58), but also allows using a...

This was previously implemented in a branch of `replicate/cog`. This implementation should not be considered complete, however, as the `run_state` context manager must be used in a particular way for...

File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadTimeout

to better align with `Trainings#create` and the way that the arguments are being used. Closes #408

Client version: 1.0.4 This snippet blocks until the prediction is done: ```py import replicate print("starting") output = replicate.run( "tencent/hunyuan-video:6c9132aee14409cd6568d030453f1ba50f5f3412b844fe67f78a9eb62d55664f", input={"prompt": "A cat walks on the grass, realistic style"}, wait=False )...