Document how to pass files
bfirsh opened this issue · 2 comments
bfirsh commented
They can be file objects or URLs.
hbarnard commented
I'm having trouble with this, documented here:
https://stackoverflow.com/questions/73927137/file-not-found-by-python-openai-whisper
I've answered my own question on stackoverflow. Need to use path objects.
muddi900 commented
OK, I am trying to pass a werkzeug FileStorage object to the whisper api. I have tried passing:
IO[bytes]object you get withFileStorage.streambytesobject you get withIO.read.
In both cases, I get JSON serializable error.