replicate/replicate-python

replicate.exceptions.ReplicateError: HTTP error: (413, 'Request Entity Too Large')

Soykertje opened this issue · 2 comments

I'm trying to use one of my endpoints but it fails with some files, when I try to send small files (1.6 MB) it works, but with a file of 86.4 MB it returns that error.

Something interesting is that if I send that file from the website it works with no problem.

This is how I call the endpoint:
result = replicate.run("my-user/model-name:version", input={"file": open(file_path, "rb")})

mattt commented

Hi, @Soykertje. Which model are you using? Can you share the IDs for a prediction that succeeded on the web and one created with the Python library that failed?

mattt commented

Closing as a duplicate of #68