Skip to content

Save result locally #48

@nomeata

Description

@nomeata

The predict function call returns the resulting images as URL, and if I want to store them locally, I still have to fetch that. But a simple

urllib.request.urlretrieve(output[0], filename)

will fail with 403 because of lack of authentication; I have to include the authentication header in that request.

It would be convenient if the replicate library would assist with that, so that the user does not have to know how to include the token in the request.

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