Skip to content

Align python client's predict method with the JS client #72

Description

@zeke

Let's make replicate.predict() a thing.

Kinda like this: https://github.com/replicate/replicate-js

Related to #69

cc @bfirsh and @erbridge as we're talking about this IRL.

Activity

  1. zeke commented on Feb 21, 2023

    @zeke
    MemberAuthor

    What if we introduced support for a shorthand format for referencing a version?

    So instead of:

    replicate.predict(version="27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478", input={...})

    We could do:

    replicate.predict(version="stability-ai/stable-diffusion@27b93a", input={...})

    This is nicer on the eyes and has the added benefit of making the model name discoverable.

    Ben I know you're not keen on using abbreviated SHAs, but maybe in the case where you're scoping it to a specific model your concerns about it go away?

  2. mattt commented on Apr 11, 2023

    @mattt

    Resolved by #79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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