Skip to content

Upload does not support IOBase #9

@sagikazarmark

Description

@sagikazarmark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions