Skip to content

document how upload-url works #1374

Open
@anotherjesse

Description

@anotherjesse

cog still supports upload files outside of replicate :yay:

  1. start cog server with flag --upload-url=http://host/:port/basepath
  2. run http server listening on host:port
  • PUT /path/... should write file to disk
  • GET /path/... should return the file
  1. when you make a prediction you need to include output_file_prefix
  • this needs to match http://host/:port/basepath and then include any additional information to uniqueify
  • example: http://host/:port/basepath/{uuid}- where the client has to decide the uuid

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions