pyannote-audio accepts an AudioFile as IOBase, but when switching to the hosted service, it fails with the following error:
stat: path should be string, bytes, os.PathLike or integer, not BytesIO
The cause of the error is that upload doesn't support IOBase as a file input and fails here:
https://github.com/pyannote/pyannoteAI-python-sdk/blob/main/src/pyannoteai/sdk/client.py#L319