Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also orlearn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also.Learn more about diff comparisons here.
base repository:replicate/replicate-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base:1.0.2
Choose a base ref
Loading
...
head repository:replicate/replicate-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare:1.0.3
Choose a head ref
Loading
  • 2commits
  • 3files changed
  • 1contributor

Commits on Oct 28, 2024

  1. Fix iterator support for replicate.run() (#383)

    Prior to 1.0.0 `replicate.run()` would return an iterator for cog modelsthat output a type of `Iterator[Any]`. This would poll the`predictions.get` endpoint for the in progress prediction and yield anynew output.When implementing the new file interface we introduced two bugs:1. The iterator didn't convert URLs returned by the model into`FileOutput` types making it inconsistent with the non-iteratorinterface. This is controlled by the `use_file_outputs` argument.2. The iterator was returned without checking if we are using the newblocking API introduced by default and controlled by the `wait`argument.This commit fixes these two issues, consistently applying the`transform_output` function to the output of the iterator as well asreturning the polling iterator (`prediciton.output_iterator`) if theblocking API has not successfully returned a completed prediction.The tests have been updated to exercise both of these code paths.
    @aron
    aron authoredOct 28, 2024
    Configuration menu
    Copy the full SHA
    de717a0View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a54a786View commit details
    Browse the repository at this point in the history
Loading

[8]ページ先頭

©2009-2025 Movatter.jp