replicate/replicate-python

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

raspipy opened this issue · 2 comments

So i'm using the replicate whisper API (openai/whisper:e39e354773466b955265e969568deb7da217804d8e771ea8c9cd0cef6591f8bc)
It's been wroking fantastic on smaller files but any file bigger than 80mb gives me the error
replicate.exceptions.ReplicateError: HTTP error: (413, 'Request Entity Too Large')

but when i'm using the website it works fine

Anyone know the problem?

This is my code
output = replicate.Client().run("openai/whisper:e39e354773466b955265e969568deb7da217804d8e771ea8c9cd0cef6591f8bc", input={"audio": open(File_Path.get(), "rb")}) F.pack_forget()
(File_Path is getting obtained from a Tkinter input field)

Hey there,
This has been mentioned here and here. From my understanding, as I shoot to solve the same problem: the workaround is to provide it a URL since it is using HTTP, GET method has a specific size limit.
Hopefully these links can help you!

mattt commented

Thanks for responding, @natelalor.

Closing as a duplicate of #68